home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19730 < prev    next >
Encoding:
Text File  |  1992-12-12  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!uwm.edu!linac!uchinews!quads!ttak
  3. From: ttak@quads.uchicago.edu (toki  takeuchi)
  4. Subject: Getting StructureRegion of a dialog. etco
  5. Message-ID: <1992Dec13.012906.18671@midway.uchicago.edu>
  6. Sender: news@uchinews.uchicago.edu (News System)
  7. Reply-To: ttak@midway.uchicago.edu
  8. Organization: University of Chicago Computing Organizations
  9. References: <1992Dec13.012252.18463@midway.uchicago.edu>
  10. Date: Sun, 13 Dec 1992 01:29:06 GMT
  11. Lines: 21
  12.  
  13. I want to get the StructureRegion of a dialog before I display
  14. the dialog.  I.e., I want to get the rectangle of the entire
  15. window, including the window structure before the dialog is displayed.
  16.  
  17. I've tried getting the DialogPeek's structure region's boundary
  18. box for an invisible dialog (before the dialog is displayed, with
  19. the Initially Visible flag off in its DLOG resource), but
  20. until I call ShowWindow, its structure region's rect remains
  21. as (0,0,0,0).
  22.  
  23. I want to do this because I want to position a dialog in System 6
  24. according to the auto-position feature of System 7.  System 7
  25. seems to position the dialog depending on the rect of the
  26. WDEF and not the grafport portrect.  Anyone at Apple know the
  27. secret???
  28.  
  29. Thanks a lot!
  30.  
  31. Kenji Takeuchi (please respond directly, preferably).
  32.  
  33.  
  34.