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 { // pushed into the 'o'-region } } ... } > 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 _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk