[comp.sys.mac.hypercard] Gatekeeper vs. HC2.0; strangeness in Address/Appointment stacks

science@oasys.dt.navy.mil (Mark Zimmermann) (01/05/91)

I found the answer to an earlier problem/query/posting that was
troubling me --- it turns out that, on Macs that are running
"GateKeeper", when you double-click on some stacks to launch them
(under HC2.0), the system beeps and doesn't execute the openStack
handler as it should (and as it does, when the stack is opened from
within an already-running copy of HC).  I don't know the details of
what causes this, but at least I can now avoid it....

But I have another problem/question:  a friend has been experimenting
with the "Address" and "Appointments" stacks supplied with HC2.0, and
has found a problem which I don't know how to localize and fix ---
namely, if one of the pair of stacks (say, the Address one) is open,
and the other (say Appointments) is also open in another window, then
when you click on the button to jump to the other stack, that other
stack flips back to the first card of its main background --- rather
than staying with the card that should have been visible.

We have tried debugging and watching messages and variables and such,
to figure out what is happening to cause this behavior, but haven't
been able to pin it down ... it seems to be associated with the
"resumeStack" (or maybe "openBackground") handlers ... since these are
factory-provided stacks, perhaps somebody wiser could duplicate the
bug (if you want to call it that) and tell us how to fix it.  Tnx!  ^z

ralph@world.std.com (Ralph Lombreglia) (01/05/91)

From article #2835:

>when you click on the button to jump to the other stack, that other
>stack flips back to the first card of its main background

The script of those buttons says "go stack [addresses or
appointments]" and this HyperTalk command takes one to the first card
of the destination stack.  You should either physically click on the
window of the stack you want, or cycle through the open stack windows
with the "Next Window" item of the Go menu (Command-L), or you should
install a "Stacks" menu in your menubar, but you'll need the "Power
Tools" stack to do that.  "Next Window" is your best bet, especially
on a 9-inch screen where the "Appointments" stack, having a
full-screen card size, wouldn't allow you to see the Addresses stack.

Of course, if you write HyperTalk, you could change the scripts of the
buttons to check whether the other stack is currently in "the stacks"
(open) and if so you could resume that stack, which would preserve the
card you were on in the suspended stack, if that's clear.  Hope it
helps.

Ralph Lombreglia
Internet: ralph@world.std.com   MCI Mail: rlombreglia   Bix: rlombreglia