[comp.sys.mac.hypercard] System message system bugs

a347@mindlink.UUCP (John Miller) (07/30/90)

It was good to read that HyperCard 2.0 would fix the dreaded
startup/openStack/openCard message sequence mixup, but there
is another message sequencing problem that has not been mentioned.
I suspect this means the problem still exists in HyperCard 2.0.

Create a card field card named "popup".  Then create a button
with the following script:
on mouseEnter
  show card field "popup"
end mouseEnter

on mouseLeave
  hide card field "popup"
end mouseLeave
This works fine unless the user likes to use the arrow keys to
move between cards.  If, while the mouse is within the popup
control button, the user presses the arrow key to go to the
next card, HyperCard goes to the next card before it sends
the mouseLeave message.  The result is that HyperCard complains
about not finding card field "popup".

It is not that hard to code around the problem but I doubt
that a novice programmer would realize the problem or
be comfortable with the solution.
----------------------------------------------------------------------
John Miller                                                     (604) 433-1795
Symplex Systems                                         AppleLink (rarely)
CDA0461
Burnaby, British Columbia                       Fax: (604) 430-8516
Canada
----------------------------------------------------------------------