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