----- Original Message -----
From: "Robin-David Hammond" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 28, 2001 6:30 PM
Subject: Messages and Scope
>
> In the documentation
>
> metaTalk Reference (111)
> Messages by Object :
> Not that objects that contain other objects can get messages from any of
these
> objects, because if a message is not handled by an objects script, it is
passed
> up to its owner.
>
> so if you click on a button , and there is no mouseDown handler, but the
CARD to
> which it belongs had a mouseDown handler, then the card handler is used.
>
> so far so good. messages pass from objects to those objects that contain
it
> until one of them contains a handler that does not call the pass
procedure.
>
> i created a an object (a group of 3 atomic graphical elements) and gave it
a
> script. the object had clearly defined boarders. the script included a
mouseDown
> handler. clicking ANYWHERE on the card called that objects handler.
>
> Is this defined as correct behavior?
In the HyperCard model, each card resides in a background. Since this is the
model upon which MC is based, I assume it uses the same object hierarchy
model (even though MC bkgnds are different animals from HC bkgnds).
That's why I would say you're experiencing correct behavior from MC.
Supporting evidence: if you have a stack where a given bkgnd is shared by
more than one card, open it and type in the message box:
answer the number of cards in bg 1
Regards,
Phil Davis
>
> thankyou
>
> robin-david hammond
>
>
>
> Archives: http://www.mail-archive.com/[email protected]/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>
>
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.