mouseAction

Typeproperty
Dictionarywidget.headerbar
LibraryHeader Bar
Syntax
get the mouseAction of <widget>
Associationscom.livecode.widget.headerbar
Summary

The header action that the mouse pointer is currently over.

Example
-- Go to the previous card when the header's "back" action is
-- clicked.
on mouseUp
   if the mouseAction of the target is "back" then
      go previous
   end if
end mouseUp
Values
NameTypeDescription
Value

The name of the header action that the mouse pointer is currently over.

RelatedProperty: itemNames
Message: mouseUp
Description

The mouseAction property contains the name of the action that was just clicked, or empty when no action was clicked.

You can read the mouseAction property to detect which action was activated when handling the mouseUp message.