send problem
Sarah Reichelt
sarah.reichelt at gmail.com
Wed Jun 2 19:49:42 EDT 2010
On Thu, Jun 3, 2010 at 9:45 AM, Nicolas Cueto <niconiko at gmail.com> wrote:
> Hello,
>
> In my stack's opencard handler the last line is "send mouseUp to field
> x" . There's other things happening in the handler before then, too.
>
> Problem is, after the stack opens, the message box appears, displays
> the word "exit", and field x's mouseUp doesn't run. But if I click on
> field x, then the mouseUp handler works.
I seem to remember having problems like this in the past.
The workaround is not to use a system event as the message you are sending.
Change your field script so it has a separate handler. e.g.
on mouseUp
doMouseUpStuff
end mouseUp
command doMouseUpStuff
-- put the script in here
end doMouseUpStuff
Then in your openCard handler, send "doMouseUpStuff" to the field
instead of mouseUp.
Cheers,
Sarah
More information about the use-livecode
mailing list