ActionControl()

Previous Next

See Also

Changes the mouse pointer to a specified shape until the user clicks on a control, at which point a specified action or list of actions is performed.

This action can be used to call context-sensitive help using the HelpRunWinhelp() action.

Syntax

ActionControl(<cursor_shape>, <class>, <action>[, <action>...])

Parameters

cursor_shape

The shape you want the cursor to have between the start of the action and the next mouse click. This can be one of the following: arrow, ibeam, wait, cross, uparrow, size, sizenwse, sizenesw, sizens, sizeewe, or TCHelp. TCHelp is the pointer shape for context-sensitive help.

class

A filter that determines which object (if any) is the target of the action. For example, if you specify Column here, the action is executed on the nearest Column ancestor of the object you click.

action

The action(s) you want to perform.

NOTE:

Actions must be specified by using the old action syntax here, NOT with method call syntax.

Example

ActionControl('TCHelp', 'Core', help-run-winhelp())