XForms: deactivate button

Dave (rewd@ded1.dyn.ml.org)
Mon, 21 Sep 1998 17:18:55 -0700 (PDT)

# To subscribers of the xforms list from Dave <rewd@ded1.dyn.ml.org> :

Am I using the fl_deactivate_object() improperly? I have four buttons set
up, when button 3 is pushed, I would like to deactivate button 2. I used
the fdesign program to create the form and both the callback name and
button name are the same.

In the calback function for button3 I use
if(fl_get_button(ob))
fl_deactivate_object(button2); /* button2 name I entered in fdesign

I get the compile error.
warning: passing arg 1 of `fl_deactivate_object' from incompatible pointer
type.
and it core dumps when button3 is pressed.

Is this the correct way to deactivate a button with the callback
functions? I did notice that the sample program objinactive.c had a
FL_OBJECT name defined for each button. Did I miss something in the
documentation? Also, the documentation makes reference to demo09.c, is the
sample in an older version? It doesn't appear to be in the 88 rpmed
version.

Thanks.

--
This sig intentionally left blank.

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