rnewman@bbn.com (Ron Newman) (06/29/91)
I am trying to place a PopupMenu inside a Motif DrawingArea
in response to Mouse Button 2, using the following Wcl-assisted
resource file:
Mri*wcTrace: true
Mri.wcChildren: draw
*draw.wcClassName: XmDrawingArea
*draw.wcPopups: popupmenu
*draw.height: 300
*draw.width: 300
*draw.translations: #override \n\
<Btn2Down>: WcTraceACT("Should Popup Menu") MriPopupACT(*popupmenu)
*popupmenu.wcConstructor: XmCreatePopupMenu
*popupmenu.wcChildren: one, two, three
*one.wcClassName: XmPushButtonGadget
*two.wcClassName: XmPushButtonGadget
*three.wcClassName: XmPushButtonGadget
<end of resource file>
However, the menu does not appear when I hit mouse button 2.
Even stranger, the server seems to lock up (sometimes temporarily,
sometimes "permanently", requiring a kill from a remote-login)
when I hit mouse button 3--even though I have no translation for
that event.
If I add this line to the resource file:
*popupmenu.menuPost: <Btn2Down>
the menu will post when I hit mouse button 2, but I still get
the weird grabbing behavior when I hit mouse button 3.
What's going on here?
/Ron Newman rnewman@bbn.com