> I'm not sure, as I can't quite see what you are trying to do, but here > goes anyway - I tweaked the code to make it compile, so may have > "broken" it even more in doing so! > > It looks to me as if your "Bar" class, although defined higher up in the > hierarchy than the "Canvas" class, is only ever drawn if the "Canvas" > class is drawn, or if the enclosing parent "Group" is drawn. > > As can be seen from the output diagnostics already in your code, moving > the "Scroll" does not cause the "Canvas" to be drawn, and hence does not > cause the "Bar" to be updated. > > Resizing the window causes "Group" to be drawn, and hence all its > children, leading to the "Canvas" being re-drawn and then finally the > "Bar" gets drawn, with the correct text. > > So, I think that the issue is simply that moving the "Scroll" does not > actually change the "Canvas" or the "Bar" at all, and hence the "Bar" is > not drawn. > > You can probably update the "Bar" from the "Scroll" class instead and > see if that works any better. >
hi ian, thanks for your answer - unfortunately it's not working better when updating the Bar from the Scroll class. regards, testalucida _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

