Which tab is showing?

16 views
Skip to first unread message

Rob McDonald

unread,
Jun 5, 2025, 7:55:43 PM6/5/25
to fltk.general
Is there a way to know which tab in a Fl_Tabs is 'on top'?

Ideally a public method -- I need to check this from outside the tab or group in question.

I tried checking the contained Fl_Group->active(), but it is always true, even when the tab is not on top.

Thanks for any suggestions,

Rob

Rob McDonald

unread,
Jun 5, 2025, 8:23:11 PM6/5/25
to fltk.general
On Thursday, June 5, 2025 at 4:55:43 PM UTC-7 Rob McDonald wrote:
Is there a way to know which tab in a Fl_Tabs is 'on top'?

Ideally a public method -- I need to check this from outside the tab or group in question.

It appears that 'visible()' does the trick.

Thanks,

Rob
 

Greg Ercolano

unread,
Jun 6, 2025, 1:02:38 AM6/6/25
to fltkg...@googlegroups.com

On 6/5/25 16:55, Rob McDonald wrote:

Is there a way to know which tab in a Fl_Tabs is 'on top'?

    value() should tell you which one is picked.
Reply all
Reply to author
Forward
0 new messages