> Error dialogs appear when I use the middle or right mousekey to initiate
> btns etc. However they work just fine with the left mousekey.
>
> How can I prevent these errors without setting the lockErrorDialogs to
> true?
Clicking any of the mouse buttons on an object always results in the
same messages being sent: mouseDown and mouseUp. The only difference
is that the first parameter to the message contains the number of the
button you clicked (1, 2, or 3, which are left, middle, and right
respectively on most systems). Unless you're doing something
different based on the value of this parameter, your scripts should
work exactly the same way no matter which mouse button the user uses.
There are a couple of other things that might be causing your
problems. One is that clicking mouse button 1 in an unlocked field
just repositions the cursor: no mouseDown or mouseUp message is sent.
Clicking the other mouse buttons sends these messages even if the
field is unlocked. Similarly, clicking mouse button 1 with the
pointer tool selects and starts a move or size operation, whereas
clicking mouse button 2 or 3 causes the normal messages to be
delivered, even with the pointer tool.
You can prevent these latter two cases from causing problems by
putting empty mouseDown and mouseUp handlers in the object's script,
or by checking "the target" if you have mouseDown or mouseUp handlers
in the card or stack script. If the target isn't one of the object's
you're interested in, just don't do anything.
Hope this helps. If it doesn't, please send more details about the
error, and which object's script is causing the problems.
Scott
> --
> [---------------------------] Simon Lord
> [Important letters that.....] Database Engineer, CAE Electronics
> [contain no errors will.....] tel: (514) 341-2000 x3861
> [develop errors in the mail.] fax: (514) 340-5496
> [---------------------------] email: simonl@cae.ca
>
***************************************************************
Scott Raney raney@metacard.com http://www.metacard.com
Any sufficiently advanced technology
is virtually indistinguishable from magic -- Clark's law