On 07.08.2008, at 16:02, Albrecht Schlosser wrote:

> Olivier wrote:
>> Dear all,
>>
>> Card tab is the label of the child group.  In my application, I  
>> update this label according to a selection in that group.  Problem  
>> is that when I switch from a long llabel to a shorter one, tab  
>> width is not automatically resized, so that end of old string  
>> remains.  If I add white spaces in the string defining the label,  
>> these seems to be ignored.
>>
>> I guessed there should be a redraw for the group/Fl_tabs/window  
>> which contains the tabs but I connot have the expected result.
>>
>> By the way, I've a button in the window which contains the Fl_Tabs  
>> to add tabs.  When I click on it, tabs widths are resized !
>>
>> Thanks for your help
>
>
> Without looking in the code, I'd try parent()->redraw();
>
> If this doesn't work, then you might try:
>
>  parent()->resize(parent()->x(),parent()->y(),
>         parent()->w(),parent()->h())
>

calling myTab->damage(FL_DAMAGE_ALL|FL_DAMAGE_SCROLL); should do the  
job, too. For some reason the function "redraw_tabs()" is protected.  
So deriving your own Fl_Tabs class can make this function public again.

----
http://robowerk.com/


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to