[comp.sys.mac.hypercard] problems placing the cursor on open stack

robin@csuchico.edu (Robin Goldstone) (08/16/89)

I have a question about what HyperCard does when you open a stack.  Forgive
me if this has already been covered.  I have a stack I am building and
in the first card I want the cursor to be put in the first field so the user
can just start typing without having to click the mouse there.  In the
card script, I do:  get loc of card field 1
                    click at it
I got this out of Goodman's book.  When I open this stack (by double-clicking
on its icon from the finder) I can see the cursor get put into field 1,
but then Hypercard does some other stuff (there is more disk access, then
the menubar gets put up) then the cursor is gone.  If I go to the next
card then back to the first one, the cursor gets properly placed in field 1.

I remeber reading a while back that when you first start up HyperCard,
the home stack is always accessed (I think a getHomeInfo is done ??).
My question is, at what point is this done?  Since my "get loc..." stuff
is in the card script, it seems it should get executed AFTER any hc init-
ialization, which I feel should occur during the openStack script phase.
Can someone tell me what's happening and where I could put my "get loc..."
code so that it gets performed properly?

E-mail replies if this subject has already been beaten to death!
Robin Goldstone,  Systems Software Specialist
California State University, Chico  Computer Center
robin@csuchico.edu