You can add predefined actions to your application by right-clicking on the Action Manager and choosing New Standard Action. The New Standard Action Classes dialog box is displayed listing the predefined action classes and the associated standard actions. These are actions that are included with Delphi and they are objects that automatically perform actions. The predefined actions are organized within the following classes:
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 descendant 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.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|