|
|
On 2020-10-06 10:58, anmol....@gmail.com wrote:
> 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.
OK, I assume you've set Fl_Tabs::callback() to invoke your own callback.
Are you using globals for groups 1,2,3,4?
If so, then your tabs callback should be able to access groups 1,2,3,4
by those variables, and be able to access their methods with whatever
API you provide.
> So the " dependence between the "tab group widgets" is done AFTER they're created"
> but I still get the undeclared identifier error.
It's not clear to me why that would be.
When you create the group instances and name them, those variables should
be set by the time your callback is invoked, as the tabs widget all four
"tab group widgets" would have been initialized.
> Am I missing something here ?
Need more info.
Perhaps show a quick fluid layout of a window -> tabs -> two groups
and an Fl_Input/Fl_Output in one or the other, and show your callback
code that tries to do the work.
Another approach is text messaging, where widgets send messages from
one to the other, but that's only if you're doing a large application.
If this is small, you can surely just do it with callbacks.
--
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/0ae6eb8f-048c-e280-0ab9-41aabf56c43f%40seriss.com.
[ Direct Link to Message ] | |
|
| |