Actually I face a problem from the callbacks. I have Tabs and then Group 1 and Group 2, 3, 4.
Now inside Tabs I detect a click to Group 4 where there is Fl_Browser. Once I detect that
Group 4 is selected, I copy the selections to a queue which is implemented inside Fl_Browser.
Since Tabs comes before Group 4 in the heirarchy (in order Group 1,2,3,4)
I am unable to access Group 1 -> Fl_Output in the Tabs callback.
So the "
dependence between the
"tab group widgets" is done AFTER they're created"
but I still get the undeclared identifier error.
Am I missing something here ?
On Tuesday, October 6, 2020 at 9:57:48 PM UTC+5:30 Greg Ercolano wrote:
Since each tab is usually a group, let's call these 'tab group widgets',
where each contains the layout for a particular tab.
Normally I'd say change the design so that any dependence between the
"tab group widgets" is done AFTER they're created. This way they can
be instanced in whatever order makes sense to create the tabs (from left
to right), and then /after/ they're all created, call a method in each
tab group widget that lets interact.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.