Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!uunet!zephyr.ens.tek.com!wrgate!teklds!tims From: tims@teklds.WR.TEK.COM (Tim Stoehr) Newsgroups: comp.windows.x Subject: Help getting started with Motif. Message-ID: <593@wrgate.WR.TEK.COM> Date: 1 Nov 89 18:28:21 GMT Sender: news@wrgate.WR.TEK.COM Distribution: na Lines: 15 I'm just getting started using motif and with the documentation am having a difficult time getting started. Perhaps some knowlegeable types out there could lend some advice about a particular simple problem. 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. Which Xm calls to use? It seems that a mainwindow, with a rowcolumn inside and using XmCreatePopupMenu() inside the rowcolumn would be appropriate. But can you draw with Xlib inside a mainwindow and a rowcolumn? Is some other structure more appropriate? What args needs to be set in each XmCreateXxx()? How do you specify your particular popup menu?