Paul.Quane@samba.acs.unc.edu (BBS Account) (08/18/90)
apologies if this has been discussed before/is well known bug. I'm trying to use the entryCallback resource for an Option Menu without much success. I do: for each optmenu button XtAddCallback(optmenubutton,XmNactivateCallback,dummy,mydata); later optmenucb[0].callback = mycallback; optmenucb[0].closure = (caddr_t) NULL; optmenucb[1].callback = (XtCallbackProc) NULL ; optmenucb[1].closure = (caddr_t) NULL; . . XtSetArgs(args[n],XmnentryCallback,optmenucb); n++; optmenu = XmCreateOptionMenu(parent,"",args,n); I also tried setting the resource before I created the pulldown menu widget of the option menu but still no joy. The "dummy" callback set up for each menu option button still gets activated instead of being "revectored" to the "mycallback" as the documentation suggests. If there is a typo in this code thats because I typed it in from memory, unreliable at the best of times. I would really like to be able to use this feature as it would save me doing some ugly things... Any Ideas people? (I'm using 1.0 on HP9000's) Paul Quane