On 13.12.2010, at 09:53, Domingo Alvarez Duarte wrote:

> 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.

The sizes of the tabs are recalculated during draw() if damage is set to 
FL_DAMAGE_ALL.

> 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.

Well, the Fl_Tabs widget is a bit different in the way it works, but once you 
know how, it's all solvable. I have a much bigger problem with the use of 
hide() and show() in this widget, because you can't hide a tab entirely. It's 
using the wrong interface. It should provide a value() interface instead.

> Prefilling Fl_Tabs with dummy Fl_Groups isn't a solution.

You are right, it's not. Also because of my last statement.

Let me know if calling damage(FL_DAMAGE_ALL) after adding a tab solves your 
problem.

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

Reply via email to