Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!mips!daver!dlb!cindy From: cindy@dlb.uucp (Cindy Holstrom) Newsgroups: comp.windows.x.motif Subject: Resizing Message-ID: <1990Oct19.175154.28038@dlb.uucp> Date: 19 Oct 90 17:51:54 GMT Reply-To: cindy@dlb.UUCP (Cindy Holstrom) Distribution: na Organization: D.L.Buck & Associates, Inc.; San Jose, Calif. Lines: 45 I would like to know what strategies you may have used to handle resizing of your application. I (will) have a Motif application which contains: BulletinBoard ------------------------------------ MenuBar | Menu bar | DrawingArea ------------------------------------ ScrollBar (horizontal) | Drawing Area | ^ | ScrollBar (vertical) | | " | RowColumn (children undefined) | | " | Label | | v | | _____________________________| | <==========================> | ------------------------------------ | Row column | ------------------------------------ | Label | ------------------------------------ I want resizing of the window to effect only the drawing area. That is, up to a maximum size, the expanding of the window will cause more of the drawing area to be exposed. This means that the scroll bars will have to be adjusted to indicate how much of the drawing area is exposed. If my application had just the drawing area, I could use the Main Window. But, with the additional widgets (Row column and label), I needed to put them all in one container. I chose BulletinBoard (rather than Form) because I have not had very good results trying to construct this using Form. I have a couple questions. 1. How does the application get notified that the windows/widgets have been resized? There doesn't appear to be any callbacks for this. Do I need to have an event handler invoked? 2. Once the application has been informed that the windows/widgets have been resized, I assume it is possible to set new values for height, width, x, and y of some of the widgets. Have others gone through this process and what were the results? Any help you can give me is appreciated. -- Cindy Holstrom {aeras,amdahl,ames,ardent,daver,netcom,sun,zygot}!dlb!cindy D. L. Buck and Associates, Inc.; San Jose, California 95119; (408)972-2825