Action Manager editor
Go Up to Property Editors Index
Use the Action Manager editor at design time to add actions to ActionBands menus and toolbars through a Vcl.ActnMan.TActionManager component.
Opening the Action Manager Editor
- Select the TActionManager object in either the Form Designer or the Structure View.
- Do either of the following:
- Double-click the TActionManager object.
- Right-click the TActionManager object and select Customize from the context menu.
The Toolbars tab allows you to quickly add toolbars (of type Vcl.ActnCtrls.TActionToolBar) to your application by pressing the New button. Use the Delete button to remove unwanted toolbars. All of the ActionBands toolbars in the application are listed in the Toolbars pane. Check ON or uncheck them to make them visible or invisible in the application UI. You can change the Caption Options for the toolbars in the Toolbar Options group box.
The toolbar, at the upper-right corner of the Actions tab, contains 4 buttons:
Inserts a new action into the action band list. Click the drop-down arrow next to the button to choose whether to add:
|Delete||Deletes the action currently selected in the Actions pane.|
|Arrow buttons||Moves the action currently selected in the Actions pane up or down to change its position in the list.|
Categories and Actions Panes
The Categories and Actions panes of the actions tab list the actions in the action band being edited.
The Categories pane lists the names of the System.Actions.TContainedAction.Category properties of the actions in the action band. You can change the Category property of an action by selecting the action in the Actions pane and changing the Category property value in the Object Inspector.
The Actions pane shows the Names of the actions in the Category selected in the left list. You can change the Name value by selecting the action and changing the value of the Name property in the Object Inspector.
Action Manager Editor's Context Menu
Right-click in the lower portion of the Action Manager editor to display the Action Manager editor's context menu. This menu contains the following commands:
|New Action||Adds a new (not predefined) action to the action band being edited in the Action Manager editor. You can then use the Object Inspector to edit its properties.|
|New Standard Action||Displays the Standard Action Classes dialog box, where you can select a predefined action.|
|Move Up||Moves the currently selected action toward the beginning of the list.|
|Move Down||Moves the currently selected action toward the end of the list.|
|Cut||Cuts the currently selected action from the clipboard, removing it from the action band.|
|Copy||Copies the currently selected action to the clipboard, without removing it from the action band.|
|Paste||Pastes actions from the clipboard, inserting them into the action band.|
|Delete||Deletes the currently selected actions from the action band.|
|Select All||Selects all actions in the Category selected in the Category pane.|
The Personalized Menus and Toolbars section has the Menus show recently used items first check box that dictates how menu items will be shown. There is also the Reset Usage Data button that restores the action bands of the application to their initial settings.
The Other section contains:
- Large icons check box--causes large icons to appear on action bands.
- Show tips on toolbars check box--causes tips to appear on toolbars.
- Show shortcut keys in tips check box--enforces (if tips are selected) showing shortcut keys in the tips.
- Menu animation list button--allows you to choose what type of animation will be used when menus open.