> Typical example would be a button whose label has been localized to a > different language where the translated text is longer than > the original and > no longer fits inside the original button size. > Another situation would be a system where the user is using > bigger default > fonts so same text takes much more screen realstate than in > the PC where I > designed the dialog layout.
I can't speak for the fltk-2 case, but under fltk-1, what I did was create a subclass of Fl_Button that, when it's label was changed, used the fl_measure() functions to figure out how big it had to be now, and if it needed to get bigger it then resized() itself then propagated that change up to its parent container. I assume something similar would work under fltk-2? ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

