Parent document is top of "Motif FAQ (Part 6 of 9)"
Previous document is "191) Can I create multi-column popup or pulldown menus?"
Next document is "193) TOPIC: DRAG AND DROP"

192) How can I keep my program from hanging if a user activates a

popup that is a child of an insensitive push button?

[Last modified: Nov 96]

Answer:  There are two workarounds for this problem.  You need only use one.

1.  Set XmNancestorSensitive to False on the XmMenuShell when its parent is
insensitive.

2.  Set XmNpopupEnabled on the men pane (XmRowColumn widget) to False when the
menu is insensitive.

Reset the resource to True if you make your button sensitive again.

Ken Lee, http://www.rahul.net/kenton/

Parent document is top of "Motif FAQ (Part 6 of 9)"
Previous document is "191) Can I create multi-column popup or pulldown menus?"
Next document is "193) TOPIC: DRAG AND DROP"