Getting the messages/handlers available for a button
J. Landman Gay
jacque at hyperactivesw.com
Sun Mar 28 15:19:53 EDT 2010
Len Morgan wrote:
> This should be so simple but I can't get the instructions in the
> documentation to work:
>
> What I'd like to know is what handlers are available to a button. This
> would include not only scripts I've written for the button but also the
> ones that Rev has builtin (like mouseUp).
Open the dictionary, and in the panel at the left under the Objects
category, click "Button". That lists all relevant button info.
> It would be really cool if I
> could get any handlers along the way like in groups, cards, stacks that
> this button (or whatever control for that matter) is contained in/on.
The message hierarchy only works in one direction, starting from the
object that first receives the message and moving on toward the engine.
That means that you can't easily retrieve messages sent to an object
farther along the hierarchy unless you specifically use a "send" command
to re-route it, or insert a frontscript to catch it before anything else
does. Behaviors are the single, limited exception; they push a message
"backward" to a subscribing object, but after that the message goes
through the hierarchy normally.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list