"the target" also valid for disabled buttons?

Paul Dupuis paul at researchware.com
Thu Mar 17 13:39:28 EDT 2016


On 3/17/2016 1:26 PM, Klaus major-k wrote:
> I do not think that the group script should be executed if I click on e.g. the disabled button „Next“!
> Or should it? that is the big question :-) 

If the group is enabled, then yes, a handler in the group for the
message that would have been sent to the disabled control (i.e. mouseUp)
will execute.

Example: A mouseUp message is sent to the top most control. If that is
enabled and has a mouseUp handler, that is executed. If that control is
disabled or has no mouseUp handler, the message continues down the
message path to the next object (a parent group or the card or the stack
or the engine).

Richard Gaskin made an excellent map of LiveCode's message hierarchy. I
can't find my link to it at the moment, but perhaps if he sees this he
can report it.




More information about the use-livecode mailing list