SuperCard 談義室

GlobalLoc と LocalLoc について説明して下さい

未翻訳ページです


Newsgroups: comp.sys.mac.hypercard
From: taylo033@maroon.tc.umn.edu (S. Taylor)
Subject: Please explain globalLoc & localLoc (SC)
Date: Sun, 13 Aug 1995 03:25:31 GMT

I thought that I understood global coordinates (0,0 is the upper left of
the screen). Correct?

And local coordinates start at the upper left of the window. Correct?

Then I tried to figure out globalLoc (Pg 71 Lang Guide) and tried the example.
Then I tried localLoc (Pg 86) and the example, & really got confused. 

As usual the manual was useless (a syntax, but NO explanation what happens.

Could someone please explain how the graphic moves when I use the examples
on Pg  71 & pg 86?

Much appreciated,

S. Taylor


From: fourthworld@earthlink.net (Fourth World)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Please explain globalLoc & localLoc (SC)
Date: Sun, 13 Aug 1995 09:08:30 -0800

"globalLoc" and "localLoc" are provided as convenient means to convert
coordinates from one system to another.  Their purpose and syntax are
described in the manual accurately.  Without a description of what the
expected behavior was, I am unable to determine how they failed to work
for your purpose.

If you simply want to move a graphic, using straight local coordinates
without converting anything is probably the most straightforward way to
go, and the coordinates for objects within a window are always given in
local coordinates, so you will not need to convert them.

Windows, however, are described in global coordinates, and it may be
useful to convert global to local if you want to adjust an object within a
window releative to another window, for example.

What would you like to do?

-- 
- Richard Gaskin
  Fourth World
  Hypermedia Development Tools


このホームページは、いぜんとして構築中です。もし SCUJ ホームページ についてご質問やご意見がございましたら、以下のホームページ管理者までメールにて ご連絡下さい。

ホームページ管理者: 大島 久雄
電子メールアドレス: oshima@kyushu-id.ac.jp