Article View: comp.sys.mac
Article #20618Re: ScreenBits.bounds from an FKEY (to usceast!pgn)
From: Richard Siegel
Date: Thu, 22 Oct 1987 13:35
Date: Thu, 22 Oct 1987 13:35
27 lines
1629 bytes
1629 bytes
> To: harvard!ames!scubed!usceast!pgn
The mailer at SCUBED.Arpa choked on this path.
Here's my response to your question; it may also be of general interest to
the net; the original question was about how to use screenBits.bounds from
an FKEY.
You can't use ScreenBits.bounds from a DA or FKEY, because code resources
(non-applications) can't use global variables. The solution is simply to
open a new GrafPort, and get its portRect -- for a newly opened grafPort
the portRect is the same as screenBits.bounds.
After you get the bounds, you can close it again.
A future version of Lightspeed Pascal will probably support the use of global
variables from DA's and possibly other code resources.
--Rich
**The opinions stated herein are my own opinions and do not necessarily
represent the policies or opinions of my employer (THINK Technologies, Inc).
* Richard M. Siegel | {decvax, ucbvax, sun}!harvard!endor!singer *
* Customer Support | singer@endor.harvard.edu *
* THINK Technologies, Inc. (No snappy quote) *
Technical Details
Message-ID:
<3035@husc6.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!endor!singerShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!endor!singer From: singer@endor.harvard.edu (Richard Siegel) Newsgroups: comp.sys.mac Subject: Re: ScreenBits.bounds from an FKEY (to usceast!pgn) Message-ID: <3035@husc6.UUCP> Date: Thu, 22-Oct-87 09:35:39 EDT Article-I.D.: husc6.3035 Posted: Thu Oct 22 09:35:39 1987 Date-Received: Sun, 25-Oct-87 00:45:01 EDT Sender: news@husc6.UUCP Reply-To: singer@endor.UUCP (Richard Siegel) Organization: THINK Technologies, Inc., Bedford, MA Lines: 27