[STR Closed w/Resolution]
Link: http://www.fltk.org/str.php?L2262
Version: 1.3-current
Fix Version: None
This is normal behavior, and maybe we could call it a FAQ.
If your widget has an outside label, then you need to call redraw() for
its parent. In this case this would be:
void cb_click(Fl_Button*, void*)
{
w->label("123");
w->parent()->redraw(); // add this to draw the label
}
The reason is that FLTK is optimized not to do too much drawing if it
might not be needed. BTW.: this works only if the parent has a real
(solid) box type and not a frame or no box. Otherwise you'd have to draw
the parent's parent (maybe the whole window), or you need to damage() a
region of the window.
Link: http://www.fltk.org/str.php?L2262
Version: 1.3-current
Fix Version: None
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs