Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uwm.edu!bionet!agate!ucbvax!lta.lta.com!david From: david@lta.lta.com (David B. Lewis) Newsgroups: comp.windows.x.motif Subject: Resizing XmDrawingArea. Message-ID: <9103191727.AA14024@lta.com> Date: 19 Mar 91 17:27:10 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: Lewis, Trachtenberg & Associates Lines: 22 > I tried simply doing an XtSetValues on XmNwidth and XmNheight for the > drawingArea widget; the widget stayed at its old size. Then, I tried Applications should be using only XtSetValues() to change geometry, so you're on the right track. MainWindow passes a chunk of its geometry management off to the ScrolledWindow; that fails depending on whether or not the parent shell can resize (XtNallowShellResize = True) and probably on the scrollingPolicy. > XtMakeResizeRequest(drawing_area, width, height, NULL, NULL); I got > an XtGeometryDone reply, but the widget still didn't increase its size. This is a widget-private function. (And it shouldn't ever return XtGeometryDone anyway.) -- David B. Lewis Lewis, Trachtenberg & Associates (LTA) Note new address!: david@lta.com +1 617 225 0366 "Some people are born great, others have greatness thrust upon them, and others get greatness as a graduation present." - Robin Williams on current politicians