MacArthur, Ian (SELEX GALILEO, UK) wrote: >> > 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. >
Of course! I changed from 'thin down frame' to 'no bok', and now it works! _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

