[comp.windows.x.motif] XtCallbackPopdown problems ...

nana@opal.bellcore.com (Ana M. Swanson) (04/18/91)

Using Motif 1.1, I had trouble using XtCallbackPopdown with the 
predefined struct(XtPopdownIDRec) as documented in O'Reilly vol.V p. 102. 

It doesn't work if you have more than one popup shell that you want to 
pop up and down in an application.  I ended up creating my own callbacks 
and pop record struct.  Also, I could only have one pop record declared and 
it had to be global. Every time I popped up a popup shell (in a callback), 
I stuffed the shell widget and enabling widget in the pop record.  Then in 
the popdown callback the pop record fields were accessed to pop down the 
popup shell and to resensitize the enabling widget.  I wasn't even able 
to pass the pop record in as client data to the popdown callback.

Currently, I have something that works, but would appreciate a cleaner solution.Has anyone had this problem and if so, do you have a better solution?

Thanks in Advance!