Show: Delphi
C++
Display Preferences
Using Action Lists
From RAD Studio
Go Up to Developing the Application User Interface Index
Note: Action lists and the Action List editor are supported for both FireMonkey and VCL frameworks. Therefore, you can use the methods described in this section for setting up toolbars and menus for Windows (VCL framework) and cross-platform (FireMonkey framework) development. However, using action bands (only available for VCL) instead is simpler and offers more options. The action lists will be handled automatically by the Action Manager (only available for VCL). See Organizing Actions for Toolbars and Menus for details.
Action lists maintain a list of actions that your application can take in response to something a user does. By using action objects, you centralize the functions performed by your application from the user interface. This lets you share common code for performing actions (for example, when a toolbar button and menu item do the same thing), as well as providing a single, centralized way to enable and disable actions depending on the state of your application.
Topics
- Setting Up Action Lists
- What Happens When an Action Fires
- How Actions Find Their Targets
- Updating Actions
- Predefined Action Classes
- Writing Action Components
- Registering Actions