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:
etc...
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/