|
|
Trying your program on Linux / gcc / FLTK 1.4, I get the same behavior you describe.
As far as I can tell, the issue is tied to calling move_to() from inside the Scroll_B::draw() function. I don't understand _why_ it's a problem. Every change I tried to force Scroll_C to be redrawn failed.
I attach my modified version of ScrollB which provides the behavior I think you want. I moved the invocation of move_to() outside the Scroll_B::draw() method, into a callback function for ScrollB's vertical scrollbar.
I'm experiencing a problem when trying to redraw a widget. In the attached code I have tried to simplify the issue as much as I could.
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/63af4ed9-8149-4ca2-a68f-0a1b6308db80n%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |