I have no doubt the answer to this is simple--and findable somewhere in the forum--but I've wasted a bunch of time looking, without success. I have an "on mouseEnter" handler in the stack script that references tool tips text to put in a field. Buttons are in a group, so if I want to edit the script of one I first select Edit Group, then go to edit the button, but that triggers the mouseEnter handler--even though I am in edit, not running mode--but with a "no such object" error, because the field referenced in the handler isn't part of the group I'm editing (buttons). So I could comment out the mouseEnter handler whenever I need to edit the script of a button, then reverse that when finished, but that seems like an unnecessary hassle. A command at the beginning of the mouseEnter handler such as:
if runningMode = "edit" then exit mouseEnter
...would do the trick, it seems, but I don't know what form that command would take.
Or maybe there is better solution.
mouseEnter handler triggering error
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: mouseEnter handler triggering error
I believe what your looking for is -
Code: Select all
if the environment is "development" then <block your tooltips>

Re: mouseEnter handler triggering error
Well, I was right about the solution being simple. Thanks so much, bogs!
Re: mouseEnter handler triggering error
No problems, glad if it helped.
I believe you can also determine if your in editMode, and can *probably* (I've never tested it) stop tool tips from showing that way as well, but I'll leave that for you to experiment with
I believe you can also determine if your in editMode, and can *probably* (I've never tested it) stop tool tips from showing that way as well, but I'll leave that for you to experiment with


Re: mouseEnter handler triggering error
Probably the easiest way is to click the Messages button in the toolbar at the top of the screen. That turns off all messages until you toggle it back on again. No scripting needed.
Also, you don't always need to edit the group. Click on the Select Grouped button in the toolbar which will allow you to edit controls inside the group without going into full group editing mode.
Also, you don't always need to edit the group. Click on the Select Grouped button in the toolbar which will allow you to edit controls inside the group without going into full group editing mode.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com