Robert Arkiletian wrote:
> On Sun, Sep 7, 2008 at 11:21 AM, Michael Sweet <[EMAIL PROTECTED]> wrote:
>> matthiasm wrote:
>>> On 07.09.2008, at 12:42, imacarthur wrote:
>>>
>>>> On 7 Sep 2008, at 4:53, Robert Arkiletian wrote:
>>>>> Another question that has come up is space on a button for translated
>>>>> text (which is potentially longer than english).  Is there any
>>>>> mechanism in FLTK to ensure the label of a button fits in the button?
>>>> No, 'fraid not.
>>> No automatic way, but can call "measure(w, h)" on a label to get the
>>> size required for the current settings and update the widget size
>>> accordingly.
>> I wrote a "SmartGroup" class for FLTK a couple years ago that
>> specifically addresses adjusting the layout and size of widgets
>> within the group after localization (or just insertion of run-time
>> text...)  Basically, you use the SmartGroup class to group widgets
>> that need to be adjusted, and then call the "do_layout" method to
>> update them, potentially resizing the containing window to account
>> for the increased widget sizes...
>>
>> I've put this and some of my other widgets up at:
>>
>>     http://www.easysw.com/~mike/fltk-widgets/
>>
> 
> Wow that's cool Mike.  All my buttons are placed inside fl_packs.
> Since an fl_pack is a subclass of a group is it possible to use this?

Yeah, that's actually one of the reasons I wrote it since Fl_Pack
didn't do everything I wanted...

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to