DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2026
Version: 1.3-current


To sum it, a normal button callback should be called IMHO:
 - once and when released only by default accordingly with
FL_WHEN_RELEASED default, thus permitting the old drag outside the widget
trick to cancel the engaged action, which is what is done in Win32 and
already works in fltk fairly well.
 - twice if FL_WHEN_CHANGED is specified in when() regardless of
FL_WHEN_RELEASED, once when mouse is clicked(resp. when key is pressed),
once when mouse is released(resp. when key is released). Today only the
mouse events seems the closest to this specification. Even worse, on
windows we see the button animating with sortcuts but not in mac os x
(which is wrong IMHO for mac os x impl.)
Finally this behavior should be updated in documentation, CHANGES and also
it should be commented that user can relie on the button value during the
callback and that fltk guaranties this important behavior.

Fabien


Link: http://www.fltk.org/str.php?L2026
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to