Action Object

The Action object is used to control the properties of a ConceptDraw shape's user-defined menu item and the action, associated with it. The user-defined menu appears when you right-click on the shape. You can add items to the menu and assign to an item a formula which will be executed when this menu item is clicked. To assign a formula to a menu item, use the SetPropertyFormula method of the Shape object. The following methods of the Shape object are defined for working with the menu item collection of a shape's user-defined menu:

Properties

Action The result of executing the formula, associated with this menu item.
Menu The name of the menu item.
Prompt The prompt that appears in the status bar when the menu item is selected.
Checked The state of a check mark beside the command name on the menu
Disabled The state of a menu item

Remarks

To retrieve an instance of the Action object, corresponding to an item of the user-defined menu item collection of the shape, use the Action method of the Shape object. Use the ActionsNum method to find out the number of the user-defined menu items. The AddAction method can be used to add an item to the user-defined menu, and RemoveAction - to remove one.

 

See Also

Action method, ActionsNum method, AddAction method, RemoveAction method, Shape object