RAD Studio (Common)
ContentsIndex
PreviousUpNext
Action Manager editor

Use the Action Manager editor at design time to add actions to ActionBands menus and toolbars through a TActionManager component. 

To display the Action Manager editor, select the TActionManager object and double-click the component or right-click and select Customize.

The toolbars tab allows you to quickly add toolbars (of type 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 box. Check or uncheck them to make them visible or invisible. You can change the caption options for the toolbars by changing the Caption Options in the Toolbar Options box.

At the top right corner of the actions tab is a toolbar containing four buttons. These are as follows: 

Button When clicked 

New Action Inserts a new action into the list. By clicking the drop-down arrow next to the button, you can choose whether to add a new action that you define, or a standard (predefined) action. If you choose Standard Action, you will be presented with a dialog where you can choose the predefined action. 

Delete Deletes the action currently selected in the list boxes. 

Arrow buttons Moves the currently selected action up or down to change its position in the list. 

The lower portion of the actions tab contains two list boxes that represent the current list of actions. The first list indicates the value of the Category property of the action. You can change this value by selecting the action and changing the value of the Category property in the Object Inspector. 

The second list indicates the name of the action. You can change this value by selecting the action and changing the value of the Name property in the Object Inspector. 

Right click in the lower portion of the Action Manager editor to display the ActionManager context menu. This contains the following items: 

Command When checked 

New Action Adds a new (not predefined) action to the Action Manager editor. You can then use the Object Inspector to edit its properties. 

New Standard Action Displays the Standard Actions 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 to the clipboard, removing it from the list. 

Copy Copies the currently selected action to the clipboard without removing it from the list. 

Paste Pastes an action from the clipboard above the currently selected action. 

Delete Deletes the currently selected action. 

Select All Selects all actions in the list.

This tab has two sections. The top section, Personalized Menus and Toolbars, has a check box (marked "Menus show recently used items first") that dictates how menu items will be shown. There is also a button, marked "Reset Usage Data," which restores the action bands of the application to their initial settings. 

The Other section of the Options tab contains a check box which causes large icons to appear on action bands. Another check box causes tips to appear on toolbars. A third check box will (if tips are selected) show shortcut keys in the tips. Finally, there is a field that allows you choose what type of animation will be used when menus open.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!