testalucida
2013-03-25 12:16:27 UTC
Hi,
imagine a Fl_Tabs instance with only one "card".
Clicking on its tab will not result in a callback action.
Catching the FL_PUSH event provides the position of the mouse-click but I don't know the click occuring within the tab or somewhere right of it.
Is there a way how to get the tab giving the click-position?
That's what I mean:
_____
/ x\ o
I'm interested in click "x" but not in click "o".
I found a variable named Fl_Tabs::tab_pos containing an array of tab-offsets but it is not accessible.
Thanks for your help
imagine a Fl_Tabs instance with only one "card".
Clicking on its tab will not result in a callback action.
Catching the FL_PUSH event provides the position of the mouse-click but I don't know the click occuring within the tab or somewhere right of it.
Is there a way how to get the tab giving the click-position?
That's what I mean:
_____
/ x\ o
I'm interested in click "x" but not in click "o".
I found a variable named Fl_Tabs::tab_pos containing an array of tab-offsets but it is not accessible.
Thanks for your help