Predefined Action Classes

From RAD Studio
Jump to: navigation, search

Go Up to Handling VCL Actions Using an Action List


You can add predefined actions to your application by choosing New Standard Action in the Action List editor or Action Manager editor (only available for VCL). The New Standard Action Classes dialog box is displayed listing the predefined action classes and the associated standard actions.

Different sets of predefined actions are included with the FireMonkey and VCL frameworks and they are objects that automatically perform actions.

FireMonkey predefined actions are declared in the FMX.StdActns unit.

The VCL predefined actions are declared in the Vcl.StdActns unit. They are organized within the following Categories:

Class Description

Edit

Standard edit actions: Used with an edit control target. TEditAction is the base class for descendants that each override the ExecuteTarget method to implement copy, cut, and paste tasks by using the clipboard.

Format

Standard formatting actions: Used with rich text to apply text formatting options such as bold, italic, underline, strikeout, and so on. TRichEditAction is the base class for descendants that each override the ExecuteTarget and UpdateTarget methods to implement formatting of the target.

Help

Standard Help actions: Used with any target. THelpAction is the base class for descendants that each override the ExecuteTarget method to pass the command onto a Help system.

Window

Standard window actions: Used with forms as targets in an MDI application. TWindowAction is the base class for descendants that each override the ExecuteTarget method to implement arranging, cascading, closing, tiling, and minimizing MDI child forms.

File

File actions: Used with operations on files such as File Open, File Run, or File Exit.

Search

Search actions: Used with search options. TSearchAction implements the common behavior for actions that display a modeless dialog where the user can enter a search string for searching an edit control.

Tab

Tab control actions: Used to move between tabs on a tab control such as the Prev and Next buttons on a wizard.

List

List control actions: Used for managing items in a list view.

Dialog

Dialog actions: Used with dialog components. TDialogAction implements the common behavior for actions that display a dialog when executed. Each descendent class represents a specific dialog.

Internet

Internet actions: Used for functions such as Internet browsing, downloading, and sending mail.

DataSet

DataSet actions: Used with a dataset component target. TDataSetAction is the base class for descendants that each override the ExecuteTarget and UpdateTarget methods to implement navigation and editing of the target.TDataSetAction introduces a DataSource property that ensures actions are performed on that dataset. If DataSource is nil, the currently focused data-aware control is used.

Tools

Tools: Additional tools such as TCustomizeActionBars for automatically displaying the customization dialog for action bands.

All of the action objects are described under the action object names in the online Help.

See Also