[comp.sys.mac.hypercard] IDing the type of Mac

mst@csun.edu (05/14/89)

I know that you are not supposed to program Hypercard for any particular
variant of Mac, but I need to find a way to tell if I am on the standard
9 inch screen, or if I am on a larger screen.  My stack will not complain
if it doesn't know, but it would be much nicer for those on the larger
screen if it knew.

BTW: My stack configures and (hopefully) communicates with a Micom Port
Selector (we got fed up using a PC).

Mike.

Mike Temkin
...!{sdcrdcf,hplabs,psivax,ttidca}!csun!mst	mst@mx.csun.edu
Cal. State U. Northridge, School of Engineering and Computer Science
Voice phone: (818) 885-3919

jdevoto@Apple.COM (Jeanne A. E. DeVoto) (05/15/89)

In article <2138@csun.edu> mx!mst@csun.edu writes:
>I need to find a way to tell if I am on the standard
>9 inch screen, or if I am on a larger screen.

HyperCard version 1.2 and later has the function "screenrect()", which
returns the location of the four corners of the screen HyperCard is running
on. For example, the line
  put the screenrect into the message box
will put
  0,0,512,342
into the message box, if HyperCard is running on a 9" Mac screen.

jeanne a. e. devoto
jdevoto@apple.com

aisl@uhura.cc.rochester.edu (Lawrence Landry) (05/15/89)

In article <2138@csun.edu> mx!mst@csun.edu writes:
>I know that you are not supposed to program Hypercard for any particular
>variant of Mac, but I need to find a way to tell if I am on the standard
>9 inch screen, or if I am on a larger screen.  My stack will not complain
>if it doesn't know, but it would be much nicer for those on the larger
>screen if it knew.
>

the screenrect

returns 0,0,640,480 for Mac II standard screen and 0,0,512,342 for Mac+, etc.

-- 
Larry Landry
University of Rochester