home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!uwm.edu!linac!uchinews!quads!ttak
- From: ttak@quads.uchicago.edu (toki takeuchi)
- Subject: Getting StructureRegion of a dialog. etco
- Message-ID: <1992Dec13.012906.18671@midway.uchicago.edu>
- Sender: news@uchinews.uchicago.edu (News System)
- Reply-To: ttak@midway.uchicago.edu
- Organization: University of Chicago Computing Organizations
- References: <1992Dec13.012252.18463@midway.uchicago.edu>
- Date: Sun, 13 Dec 1992 01:29:06 GMT
- Lines: 21
-
- I want to get the StructureRegion of a dialog before I display
- the dialog. I.e., I want to get the rectangle of the entire
- window, including the window structure before the dialog is displayed.
-
- I've tried getting the DialogPeek's structure region's boundary
- box for an invisible dialog (before the dialog is displayed, with
- the Initially Visible flag off in its DLOG resource), but
- until I call ShowWindow, its structure region's rect remains
- as (0,0,0,0).
-
- I want to do this because I want to position a dialog in System 6
- according to the auto-position feature of System 7. System 7
- seems to position the dialog depending on the rect of the
- WDEF and not the grafport portrect. Anyone at Apple know the
- secret???
-
- Thanks a lot!
-
- Kenji Takeuchi (please respond directly, preferably).
-
-
-