home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!destroyer!caen!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
- From: mahan@tgv.COM (Patrick L. Mahan)
- Newsgroups: comp.windows.x
- Subject: RE: "Minimum size" attachments/constraints.
- Message-ID: <920723082333.25e000bb@TGV.COM>
- Date: 23 Jul 92 15:23:33 GMT
- Sender: daemon@athena.mit.edu (Mr Background)
- Organization: The Internet
- Lines: 27
-
- #
- #I would like to create a dialog box which is the minimum size necessary
- #to contain the widgets inside of it. Because different displays have
- #different resolutions, this minimum size is dependent upon several factors:
- #the font used and the display used come to mind.
- #
- #I have been trying to create an attached dialog box (DECwindows) that
- #will size itself. I cannot. I have attached all of the widgets to
- #each other (in font units and in other versions in pixel units). I
- #have attached the widgets to their container. Still, if I don't give
- #the outermost dialog box a height and a width, I get only a very very
- #small dialog box.
- #
-
- Jerry, unfortunately, this is how the dialog boxes under DECwindows work.
- For instance, DECwindows Mail dialog boxes don't resize based on the font,
- etc. My best suggestion would be to add a work proc to go through and
- resize the dialog box after the widgets have been realized and mapped.
- For an example of this, see Rick Murphy's DXRN code.
-
- Patrick L. Mahan
-
- --- TGV Window Washer ------------------------------- Mahan@TGV.COM ---------
-
- Waking a person unnecessarily should not be considered - Lazarus Long
- a capital crime. For a first offense, that is From the Notebooks of
- Lazarus Long
-