Links
EControl Form Designer Pro
TDesignSurface.ExecuteAction Method

Invokes an action with the component as its target.

function ExecuteAction(Action: TBasicAction): Boolean; override;

When the user invokes an action, VCL makes a series of calls to respond to that action. First, it generates an OnExecute event of the action list that contains the action. 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. 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. 

 

The Action parameter specifies the action that was invoked. ExecuteAction returns true if the action was successfully dispatched, and false if the component could not handle the action. If ExecuteAction returns false for the active control, VCL calls the active formís ExecuteAction method. If this returns false, VCL tries all active controls in the form. If these all return false, VCL repeats the process with the main form, if that is different from the active form.

Copyright (c) 2004 - 2011 EControl Ltd.. All rights reserved.
What do you think about this topic? Send feedback!