XForms: Menu/Callback Question...

Kevin Smith (kevin@pactitle.com)
Thu, 19 Mar 1998 14:02:42 -0800

# To subscribers of the xforms list from Kevin Smith <kevin@pactitle.com> :

Is it possible to bind a callback to a menu item? Right now I set a callback in
fdesign for the menu itself and do a switch

void particle_menu_cb(FL_OBJECT *object, long value)
int ITEM = fl_get_menu(object);
const char *TEXT = (char *)malloc(64 * sizeof(char));

TEXT = fl_get_menu_text(object);

switch(ITEM) {
case 1:
case 2:


but I want to seperate the different menu items out, into their own
callbacks if possible. Any advice appreciated.


============================================================== "..The day that this country ceases to be free for irreligion it will cease to be free for religion - except for the sect that can win political power.."

-- Justice Robert H. Jackson, Zorach v. Clauson


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