SuperCard 談義室

グラフィック・スクリプト

未翻訳ページです


From: bsienna@terraport.net (Baruch Sienna)
Newsgroups: comp.sys.mac.hypercard
Subject: help for graphic script in SC
Date: 14 Nov 1995 05:20:12 GMT

OK, I am almost finished my demo for my first interactive educational
project in SC 2.5. I am really pleased at how much I was able to do, and
how easy it was. Here's the problem: On one card, I want the user to be
able to draw a small picture in a prescribed area on the screen. So I set
the brush tool, shape and colour I want them to have. I know the
coordinates of the box that the tool needs to be brush. The problem is,
how can I get the msg. to the card to change the tool back to browse tool,
since the mouseEnter/Within commands only function when the tool is
already browse. When I manually change the tool (ie use the msg. box) it
seems to work. Any solutions would be appreciated.
Baruch

From: sothundr@seanet.com (Fourth World Embassy (Washington))
Newsgroups: comp.sys.mac.hypercard
Subject: Re: help for graphic script in SC
Date: Tue, 14 Nov 1995 23:32:23 -0800

Baruch,

There are a few ways:

1) Requires a key or command-key to change it. You could require the user
to type "Command-B" and trap it in a menuKey handler.

2) You could change it back when the pointer was over a specific area of
the screen. You would need to use an "idle" handler that "watched" the
location of the cursor, and if it was in a certain area, change the
cursor:

on idle
  if the mouseLoc is within (rect of cd grc "Toolbar") then
    if the tool of this wd <> "browse" then
      choose browse tool
    end if
  else
    pass idle
  end if
end idle

Hope this helps,

-- Ken Ray
   Fourth World Embassy (Washington)
   HyperMedia Development Tools
   Orders: 1-800-288-5825

From: Hugh Senior 
Newsgroups: comp.sys.mac.hypercard
Subject: Re: help for graphic script in SC
Date: 14 Nov 1995 17:47:26 GMT

You'll need to include a button (or menu item) to revert to browse mode.

Hope that helps
/H

From: fourthworld@earthlink.net (Fourth World)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: help for graphic script in SC
Date: 14 Nov 1995 19:18:11 GMT

If I understand you correctly, you are trying to implement "multiple
panes", different areas of the screen which offer distict modes, such as a
document area and a tools area.

This cannot be done in SuperCard, and SuperCard windows have a single mode
at any given time.  However, you could quite easily move your tools to a
tool palette or (as is ever so fashionable on Windoze) a toolbar for the
same effect.

Using tool palettes give you the added benefit that the user can move a
tool palette to the exact location they want, as opposed to having to
always go to the extreme left edge of the monitor to change modes.  On a
20" monitor, your users will thank you.

-- 
- Richard Gaskin
  Fourth World
  Hypermedia Development Tools
  US: 1-800-288-5825
  International:  1-213-225-3717
  Fax: 1-213-225-0716

From: ijenkins@info.curtin.edu.au (Nick Jenkins)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: help for graphic script in SC
Date: 15 Nov 1995 10:59:17 +0800

Basically set the tool in the idle script. You'll need to be a bit crafty
through, because if you keep setting the tool in idle time it'll flash

Something like this :

on idle
  put the tool of this window into currentTool
  if within(cd grc "whatever",the mouseloc) then
    if (currentTool is not "pointer tool") then 
      choose pointer tool
    end if
  else if currentTool is not "browse tool" then choose browse tool
end idle
 
--

Nick Jenkins, Multimedia Programmer    n.jenkins@info.curtin.edu.au
Curtin University of Technology        http://info.curtin.edu.au/~ijenkins/
----------------------------------------------------------------------------
"Don't look back, the lemmings are gaining on you"



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

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