Generates an OnActionExecute event.
function ExecuteAction(Action: TBasicAction): Boolean; reintroduce;
__fastcall Boolean ExecuteAction(TBasicAction Action);
When the user invokes an action, a series of calls ensues to respond to that action. First, the action list that contains the action generates an OnExecute event. If the action list does not handle the OnExecute event, then the action is routed to the Application object's ExecuteAction method, which invokes the OnActionExecute event handler. (The application's ExecuteAction method responds to all unhandled actions in the application.) If the OnActionExecute event handler does not handle the action, then it is routed to the action's OnExecute event handler. If that does not handle the action, the active control's ExecuteAction method is called, followed (if necessary) by the active form's ExecuteAction method.
Do not call ExecuteAction. It is called automatically when the user invokes an action. The Action parameter specifies the action that was invoked. ExecuteAction checks whether the application knows how to perform its function, and if so, executes the action and returns true. Otherwise, ExecuteAction returns false, and the default processing for the action continues.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!