Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!brutus.cs.uiuc.edu!wuarchive!decwrl!shlump.nac.dec.com!engage.enet.dec.com!gvriel.enet.dec.com!schoeller From: schoeller@gvriel.enet.dec.com (Dick Schoeller) Newsgroups: comp.windows.x Subject: Re: Help getting started with Motif. Message-ID: <1353@engage.enet.dec.com> Date: 7 Nov 89 00:06:07 GMT References: <593@wrgate.WR.TEK.COM> Sender: news@engage.enet.dec.com Reply-To: schoeller@gvriel.enet.dec.com (Dick Schoeller) Distribution: na Organization: Digital Equipment Corporation, Maynard, Massawhat? Lines: 18 In article <593@wrgate.WR.TEK.COM>, tims@teklds.WR.TEK.COM (Tim Stoehr) writes: > I want to have a window, forget about resizing/exposing considerations. > In the window I want to draw a box with Xlib calls. Inside the box I want > to draw two rectangular figures with Xlib calls. I would then like a pop-up > menu to be associated with a mouse depression over each rectangular figure. > No scrolling of the window is necessary. > You want to use an XmDrawingArea inside an XmMainWindow. You can then use XmCreatePopupMenu to get the popup menu as a child of the mainWindow. The drawingArea is the only widget which supports application supplied Xlib graphics. Dick Schoeller | schoeller@gvriel.enet.dec.com Digital Equipment Corporation | 508-493-1670 129 Parker Street, PKO3-1/H21 | Maynard, MA 01754-2571 | This author has no opinions to disclaim!