[comp.sys.mac.hypercard] Supercard ?s

cs290ac@ux1.cso.uiuc.edu (09/09/90)

I have a couple of problems in SuperCard I was hoping someone here could
help me out with.

The first is that I want to use 1 cursor for everything in a stack.  Before
creating a custom cursor, I tried using the arrow by setting the lockcursor
property to true after setting the cursor to the arrow.  This works fine
with the exception of when the user clicks in the menu bar.  After the user
does this, the cursor changes into the hand.  What can I do to prevent this?

And also, I'm using an external command to pop up menus (For certain reasons,
I didn't want to use SuperCard menus for this).  My problem is that I use
the MouseLoc function to get the mouse location.  But the coordinates It
returns are local to the window while the coordinates the XCMD wants are
global.  I saw a function called GlobalLoc in the pop-up menu of functions
that comes up in the script editor.  I tried it, but SuperCard doesn't
recognize it at all and I can't find it documented anywhere.  Is there anything
besides writing a globalLoc XCMD I can do to get global coordinates?

--RS

mdichter@hstbme.mit.edu (Mark Dichter, MD) (09/10/90)

Problem #1: In SuperCard 1.5, I tried to repeat this without success. Do 
you make any calls to reset the cursor in the menu choice. Try tracing 
thru each step since SuperCard scripts may be doing this to you. If all 
fails, reset the cursor and lockcursor after each menu selection.

Problem #2: Remember to pass the FUNCTION Globalloc a point! If you type 
in to the msg box:

globalloc(the mouseloc)

it works. It is documented (somewhat) in the Addendum book, p. 54

A SuperCard Beta tester and developer.
Mark Dichter, MD
Decision Systems Group        Harvard Medical School

cs290ac@ux1.cso.uiuc.edu (09/11/90)

I tried the cursor problem again and realized that the problem doesn't
occur with the arrow cursor, but with other cursors.  It looks like
SuperCard sets the cursor to the arrow whenever there is a mousedown in
the menu bar (not done from a script, I traced).  So, if you set the
cursor to busy, lock the cursor, and mouse down in the menu bar without
selecting anything, the cursor will change to the arrow.  It's not a big
deal, but it kind of defeats the lockcursor feature.  perhaps I could
change the cursor to whatever I wanted on mousedown of each menu?

Anyways, thanx for the globalLoc info, I didn't know this existed.

-RS