> What I need is for the button callback to be called when the user initially
> pushes the mouse button down, not when it is released. I have tried all the
> different types of button (push, in/out, etc) but they all appear to call the
> callback upon mouse release.
Use an in/out button and add test the state of the button:
void inout_callback( FL_OBJECT *obj, long data )
{
if ( !fl_get_button( ob ) )
do_your_stuff();
}
The button state will be 1 when the buttion is pushed and 0 when released.
spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/