home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / x / 14330 < prev    next >
Encoding:
Internet Message Format  |  1992-07-24  |  1.7 KB

  1. 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
  2. From: mahan@tgv.COM (Patrick L. Mahan)
  3. Newsgroups: comp.windows.x
  4. Subject: RE: "Minimum size" attachments/constraints.
  5. Message-ID: <920723082333.25e000bb@TGV.COM>
  6. Date: 23 Jul 92 15:23:33 GMT
  7. Sender: daemon@athena.mit.edu (Mr Background)
  8. Organization: The Internet
  9. Lines: 27
  10.  
  11. #
  12. #I would like to create a dialog box which is the minimum size necessary
  13. #to contain the widgets inside of it.  Because different displays have
  14. #different resolutions, this minimum size is dependent upon several factors:
  15. #the font used and the display used come to mind.
  16. #
  17. #I have been trying to create an attached dialog box (DECwindows) that
  18. #will size itself.  I cannot.  I have attached all of the widgets to
  19. #each other (in font units and in other versions in pixel units).  I
  20. #have attached the widgets to their container.  Still, if I don't give
  21. #the outermost dialog box a height and a width, I get only a very very
  22. #small dialog box.
  23. #
  24.  
  25. Jerry, unfortunately, this is how the dialog boxes under DECwindows work.
  26. For instance, DECwindows Mail dialog boxes don't resize based on the font,
  27. etc.  My best suggestion would be to add a work proc to go through and 
  28. resize the dialog box after the widgets have been realized and mapped.
  29. For an example of this, see Rick Murphy's DXRN code.
  30.  
  31. Patrick L. Mahan
  32.  
  33. --- TGV Window Washer ------------------------------- Mahan@TGV.COM ---------
  34.  
  35. Waking a person unnecessarily should not be considered  - Lazarus Long
  36. a capital crime.  For a first offense, that is            From the Notebooks of
  37.                               Lazarus Long
  38.