Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!quorum.com!martin.chavez From: martin.chavez@quorum.com (R. Martin Chavez) Newsgroups: comp.windows.x.motif Subject: Resizing XmDrawingArea. Message-ID: <9103190505.AA14176@yaya.> Date: 19 Mar 91 05:05:40 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 21 I have a drawingArea widget that is the workWindow of a mainWindow widget (set via XmMainWindowSetAreas). The mainWindow and the drawingArea are correctly instantiated; the drawingArea is created as the child of the mainWindow and managed. I now want to change the size of the drawingArea, and I'd like the mainWindow to grow automatically as necessary. I tried simply doing an XtSetValues on XmNwidth and XmNheight for the drawingArea widget; the widget stayed at its old size. Then, I tried XtMakeResizeRequest(drawing_area, width, height, NULL, NULL); I got an XtGeometryDone reply, but the widget still didn't increase its size. Does anybody know what I'm doing wrong? I can get a resize to happen by doing an XtSetValues on the mainWindow widget itself, but it's the drawingArea child that I'd like to resize directly, since I don't know the dimensions of the mainWindow's menuPane and separator. Regards, R. Martin Chavez Quorum Software Systems, Inc.