[..]
>
> OTOH, if you call window()->redraw(), then this would reliably draw
> everything,
> but might flicker, if you don't use double buffering (Fl_Double_Window).
>
> Albrecht
It occurred to me to try the following, which seems to
work okay. Other than being relatively inefficient,
do you guys see any issues with it?
Thanks again,
Stan
void
relabel(Fl_Widget* w, char const* newlabel, bool copy = false)
{
static std::string spaces(" ");
if(w->label()) {
spaces.resize(1);
while(fl_width(spaces.c_str()) < fl_width(w->label())) {
spaces += ' ';
}
w->label(spaces.c_str());
w->redraw_label();
}
if(copy) w->copy_label(newlabel); else w->label(newlabel);
w->redraw_label();
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk