Re: [fltk.general] Fl_Tabs: How to find the tab that is clicked upon

2013-03-25 Thread Greg Ercolano
On 03/25/13 07:53, testalucida wrote: > I just overlooked the which( x, y ) method which exactly fits my needs. Great -- yes, it's easy to miss, because it wasn't documented! ;) Fixed in r9849: - Fl_Widget * F

Re: [fltk.general] Fl_Tabs: How to find the tab that is clicked upon

2013-03-25 Thread testalucida
thank you guys for caring about my problem have a nice day testalucida > > On 03/25/13 05:16, testalucida wrote: > > > _ > > > /x\ o > > > > > > I'm interested in click "x" but not in click "o". > > = > > > What Ian said, and I'd offer that setting when(FL_WHEN_NOT_CHANGED) > >

Re: [fltk.general] Fl_Tabs: How to find the tab that is clicked upon

2013-03-25 Thread MacArthur, Ian (Selex ES, UK)
> On 03/25/13 05:16, testalucida wrote: > > _ > > /x\ o > > > > I'm interested in click "x" but not in click "o". > > What Ian said, and I'd offer that setting when(FL_WHEN_NOT_CHANGED) > /should/ work for your case, but does not. Yes; I tried that too, to no avail... However,

Re: [fltk.general] Fl_Tabs: How to find the tab that is clicked upon

2013-03-25 Thread testalucida
Hi Ian, excuse me bothering you... it's much easier than I thougt: I just overlooked the which( x, y ) method which exactly fits my needs. Thanks for answering. > > imagine a Fl_Tabs instance with only one "card". > > Clicking on its tab will not result in a callback action. > > Catching the F

Re: [fltk.general] Fl_Tabs: How to find the tab that is clicked upon

2013-03-25 Thread chris
You could perhaps use the method: Fl_Widget * Fl_Tabs::which (int event_x, int event_y) in your derived handle(). e.g. int handle( int e) { if (e==FL_PUSH) { if ( which(Fl::event_x(), Fl::event_y() ) { // pushed into the 'x'-region } else {

Re: [fltk.general] Fl_Tabs: How to find the tab that is clicked upon

2013-03-25 Thread Greg Ercolano
On 03/25/13 05:16, testalucida wrote: > _ > /x\ o > > I'm interested in click "x" but not in click "o". What Ian said, and I'd offer that setting when(FL_WHEN_NOT_CHANGED) /should/ work for your case, but does not. This is probably a bug in Fl_Tabs; I opened STR#2939

Re: [fltk.general] Fl_Tabs: How to find the tab that is clicked upon

2013-03-25 Thread MacArthur, Ian (Selex ES, UK)
> 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 g

[fltk.general] Fl_Tabs: How to find the tab that is clicked upon

2013-03-25 Thread testalucida
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 t