Am 15.06.2009 12:00 Uhr schrieb "Michael Schmid" unter <[email protected]>:
> What I finally need is the following behaviour:
>
> Button unpressed: Picture 1 is shown on button
> Button pressed: Picture 2 is shown on button
You need to derive your own widget class, write a new "int handle(int
event)" function, and handle FL_PUSH and FL_RELEASE events to change the
"image()" member of the button.
> A function is called if you release the button, but just if you release
> it on the button. If the button gets released, because you move the
> mouse away from the button, then the function shouldn't be called.
Yes, that is what the pushbutton does in its default configuration.
Matthias
--
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk