greetings, i have just found that the Fl_Button handle() enables dragging on buttons. if when() matches FL_WHEN_CHANGED it even triggers the callback, so that when you drag on it, it constantly switches on and off.
why is this behaviour wanted? enlighten me please? :) anyway, this behaviour is annyoing in the following example: a Mute button in a mixer. it should trigger the callback instantly, otherwise you cant precisely mute (think drum track muting), so we set it to call the callback on FL_WHEN_CHANGED. now, if you accidently drag slightly instead of just pushing the button (may happen right?), it could be that the callback is triggered twice and, oh no, the drumtrack moves on! i fixed this by overwriting the handler in a derived class, but like to discuss this anyway. Thank you, JanE _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

