Re: XForms: Button help - callback too late !!

Richard Kent (kent@hydra.dra.hmg.gb)
Thu, 29 May 1997 10:22:51 +0100

To subscribers of the xforms list from "Richard Kent" <kent@hydra.dra.hmg.gb> :

> Of course the code above should read
>
> void inout_callback( FL_OBJECT *obj, long data )
> {
> if ( fl_get_button( ob ) )
> do_your_stuff();
> }

Thanks for the code. An in/out button DOES have its callback called on button
push (sorry, error in initial plee for help) but doesn't have the click on,
click off behaviour I need (ie a push button) so you click it on with one mouse
click and click it off with another mouse click.

Basically what I need is a combination of the in/out callback interaction
(callback called on push and release) with the actual behaviour of a push
button (you clik it on then click it off).

I have since sorted the problem using a preemptive handler to catch the mouse
button press on a normal push button but it would be nice if there was (yet)
another type of button, maybe called an IN_OUT_PUSH_BUTTON or something which
encapsulates the behaviour I need.

Cheers for the help,

TicH

------------------------------------------------------------------------
| Name - Richard Kent |
| EMail - kent@hydra.dra.hmg.gb |
------------------------------------------------------------------------

_________________________________________________
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/