FLTK logo

Re: [fltk.general] test/tabs

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: test/tabs Greg Ercolano Oct 30, 2020  
 
On 2020-10-30 05:30, holm.h...@gmail.com wrote:
>
> Hello,
>
> I need to hide() a group which is under a group.
>
> That functionality should be in the test/tabs program:
>       { Fl_Group* o = new Fl_Group(10, 60, 315, 235, "@fileprint  &print");
>         o->tooltip("tab5 verifies if visibility requests are handled correctly");
>         o->hide();
>
> For me the tab do however show.
>
> any suggestions ?


    Since Fl_Tabs uses the hide() / show() flag on the immediate child groups
    to make them show when a tab is clicked, I don't think setting hide() on
    the tab child groups will be effective, as Fl_Tabs will override it depending
    on which tab is clicked.

    If you want a tab not to show up at all, you probably have to remove() the
    group from the Fl_Tabs widget, and add() it back when you want it to show
    up again.

    But in the above you say it's a "group in a group", which I would think should
    work, as long as the group you're hiding is not the immediate child of Fl_Tabs.


-- 
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/91c64f29-a114-709b-908c-7401f514fe97%40seriss.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.