On 05.10.2009, at 22:42, David Lopez wrote:

> Hi.
> I am using FLUID to create few different types of tabbed dialogs.
> All dialogs are pretty similar but some tabs don't apply for some  
> dialog types.
> So, I would like to know if there is any simple way to  
> programatically destroy or completely hide the unwanted tabs in  
> order to create only one class in FLUID.
> Any idea is wellcome.

This is a bad API in FLTK. Hinding a Tabbed Group will not remove it  
from Fl_Tabs, but just deactivate it. The correct way to do this is to  
use Fl_Tabs::remove(myWidget) to break up the linkage between the Tabs  
and the Tabbed Group. You can later use Fl_Tabs::insert(...) to put  
that tab back in. I suggest you call value() afterward to get a  
correct sorting and the redraw().

Matthias

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

Reply via email to