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 <http://fltk.org/str.php?L2939> and suggested a patch there which makes that work, e.g. Index: Fl_Tabs.cxx =================================================================== --- Fl_Tabs.cxx (revision 9847) +++ Fl_Tabs.cxx (working copy) @@ -173,11 +173,14 @@ Fl::focus(this); redraw_tabs(); } - if (o && value(o)) { - Fl_Widget_Tracker wp(o); - set_changed(); - do_callback(); - if (wp.deleted()) return 1; + if (o) { + int change = value(o); + if (change || (when() & FL_WHEN_NOT_CHANGED)) { + Fl_Widget_Tracker wp(o); + if (change) set_changed(); + do_callback(); + if (wp.deleted()) return 1; + } } Fl_Tooltip::current(o); } else { _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk