Handling VCL Actions Using an Action List
Go Up to VCL Actions
You can handle the actions of your applications using an action list component.
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.
This is the same approach that you use to handle actions in FireMonkey applications. You may want to use this approach if you think that you may want to migrate your application to FireMonkey in the future. Otherwise, use an action manager instead.
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