User Guide

174 Chapter 10: Events and Messages
on getBehaviorTooltip
Usage
-- Lingo syntax
on getBehaviorTooltip
statement(s)
end
// JavaScript syntax
function getBehaviorTooltip() {
statement(s);
}
Description
System message and event handler; contains Lingo that returns the string that appears in a tooltip
for a script in the Library palette.
Director sends the
getBehaviorTooltip message to the script when the cursor stops over it in
the Library palette. Place the
on getBehaviorTooltip handler within the behavior.
The use of the handler is optional. If no handler is supplied, the cast member name appears in
the tooltip.
The handler can contain embedded Return characters for formatting multiple-line descriptions.
Example
This statement displays “Jigsaw puzzle piece” in the description pane:
-- Lingo syntax
on getBehaviorTooltip
return "Jigsaw puzzle piece"
end
// JavaScript syntax
function getBehaviorTooltip() {
return "Jigsaw puzzle piece";
}
See also
on getPropertyDescriptionList, on getBehaviorDescription, on runPropertyDialog
on getPropertyDescriptionList
Usage
-- Lingo syntax
on getPropertyDescriptionList
statement(s)
end
// JavaScript syntax
function getPropertyDescriptionList() {
statement(s);
}