"the target" also valid for disabled buttons?

Klaus major-k klaus at major-k.de
Thu Mar 17 13:42:26 EDT 2016


Hi Paul,

> Am 17.03.2016 um 18:39 schrieb Paul Dupuis <paul at researchware.com>:
> 
> 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).

ah, OK, get it, thanks a lot!
Makes sense. :-)

> 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.

Thanks, I know his site and his great articles!


Best

Klaus

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





More information about the use-livecode mailing list