RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomActionList.ExecuteAction Method

Generates an OnExecute event.

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

Typically, applications do not call the ExecuteAction method. Instead, the action indicated by the Action parameter calls ExecuteAction in response to a user command. It is possible, however, to call ExecuteAction to generate an OnExecute event even though no client control has been triggered. 

ExecuteAction invokes the OnExecute event handler for the action list. It returns true if the event handler handles the action, false otherwise. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!