Here you are pointing one of problems of Fl_Tabs "Guess work", When adding  
a group to Fl_Tabs the label of the group isn't adapted to the labelsize  
of Fl_Tabs resulting in strange tabs.

I think that Fl_Tabs should have an explicit client_area = Fl_Tabs.size -  
Fl_Tabs.labelsize, and all groups inserted should be using the same  
Fl_Tabs.labelsize.

Prefilling Fl_Tabs with dummy Fl_Groups isn't a solution.

En 12/12/2010 21:10:44, Matthias Melcher <[email protected]> escribió:

>
> On 12.12.2010, at 20:50, [email protected] wrote:
>
>> On 12/12/10 19:15, Domingo Alvarez Duarte wrote:
>>>
>>> I want to add Fl_Groups to Fl_Tabs dynamically and I need to know the
>>> Fl_Tab client area available to resize the Fl_Group properly but I  
>>> can't
>>> find any method that tell me it.
>>
>> FWIW, when I tried this, I made it so that each tab had a group inside
>> it anyway - then when I added/removed things from the tab, I could
>> ascertain the current client area of the "tab" by checking the size of
>> the enclosed group.
>
> It is kind of the other way around. It's not the Tab that defines the  
> client area, but the size of the first child that determines the space  
> that the tabs can occupy. So if you want 30 pixel high tabs at the top,  
> your children should be
>
> Fl_Group(tab->x(), tab->y()+30, tab->w(), tab->h()-30);
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to