RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComponent.ExecuteAction Method

Executes an action.

Pascal
function ExecuteAction(Action: TBasicAction): Boolean; dynamic;
C++
__fastcall Boolean ExecuteAction(TBasicAction Action);

ExecuteAction executes an action for the component. Action is a TBasicAction or any descendant of TBasicAction.  

ExecuteAction first checks if the provided action is compatible with the component and then executes the action. The return value is a boolean. A value of true is returned if the action was executed; otherwise false is returned.  

Derived classes can override this method to implement a distinct way of handling actions. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!