Page 1 of 1

set the cursor to arrow; browse vs. edit mode of stack;

Posted: Wed Aug 15, 2012 10:00 am
by Latarg
Hello!

How can I find out in which mode a stack is concerning "edit" vs. "browse/run".

I try to set the cursor stack wide to arrow so no text field gets an iBeam cursor.

When do I have to call "lock cursor"?

Using "on resumeStack" or "on suspendStack" does not work; they are called in both edit/run modes.

Using "on stackOpen" does not work; cursor is set to arrow even in edit mode!

I want to prevent a using of "MouseWithin" or "MouseEnter" as this is called repeatedly.

Any ideas?

Thanks a lot!

Noah

Re: set the cursor to arrow; browse vs. edit mode of stack;

Posted: Wed Aug 15, 2012 10:26 am
by shaosean
Lots of questions, so lets tackle them one at a time..
How can I find out in which mode a stack is concerning "edit" vs. "browse/run".

Code: Select all

if (the tool = "browse tool") then
  put "browse mode"
else if (the tool = "pointer tool") then
  put "edit mode"
end if
When do I have to call "lock cursor"?
In the mouseEnter command

Code: Select all

on mouseEnter
  lock cursor
  set the cursor to watch
end mouseEnter

on mouseLeave
  unlock cursor
end mouseLeave

Re: set the cursor to arrow; browse vs. edit mode of stack;

Posted: Thu Aug 16, 2012 7:46 am
by Latarg
Thanks a lot!!!

Re: set the cursor to arrow; browse vs. edit mode of stack;

Posted: Thu Aug 16, 2012 11:36 am
by Klaus
Why not just use LOCKED fields?