> > Sven Jonsson wrote:
> >> I'm using the value method of Fl_Help_View to display a 
> short (ca 10 - 20
> >> lines) temporary document. The problem is that when I 
> change the data by
> >> calling value again, the new data is written on top of the 
> old. I want
> >> the old data to be removed before the new data is 
> displayed, but I don't
> >> know how to accomplish this. If I interactively resize the window
> >> containing the widget, it gets redrawn correctly, but 
> there should be a
> >> better way.
> > 
> > Try calling the widget's redraw() method after making the change.
> 
> Already tried that. 
> 
> When I call value, the new data is displayed, but it is 
> displayed on top of 
> the old. Calling redraw doesn't make a visual change. I've 
> tried to call 
> damage(1) before calling redraw, but the result is the same. 


Sven,

Just for background: what version of fltk, what target platform, what
toolchain, please.

Also, can you post a minimal compileable example of what you are
actually doing, something that exhibits the fault, so that we can all
try it on different setups and see what happens.

It should, of course, Just Work, so the fact that it does not is
suspicious.

One thing that occurs to me, off the top of my head; what box type do
you have set for the html widget? That might be key here.

-- 
Ian



SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to