Problem with Pass command

Klaus Major klaus at major-k.de
Tue Feb 14 13:40:17 EST 2006


Hi Steve,

> Perhaps someone can help with the following problem   I have  
> involving the
> pass command.   I have a button that performs a certain action. A  
> field (it
> could also be another button) overlies the button.   I'd like to  
> arrange so that
> if I click on the field the message passes through it to the  
> button.   How can
> I do this?   I've set the locktext of the field to true and had  
> either no
> script associated with the field or inserted the following script:
> on mouseUp
> pass mouseUp
> end mouseUp
>
> Nothing happens though. How can I get the button to react?   Thanks  
> very
> much.

"passing" doesn't work, as you experienced but you can "send" mouseup  
to your button!

on mouseUp
   ### do field stuff here if necessary
   send "mouseUp" to btn "your buttonname here"
end mouseUp

> Steve Goldberg

Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de




More information about the use-livecode mailing list