RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomActionList.UpdateAction Method

Generates an OnUpdate event.

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

Typically, applications do not call the UpdateAction method. Instead, the action indicated by the Action parameter calls UpdateAction when informed by the application that it can update itself. It is possible, however, to call UpdateAction to generate an OnUpdate event even though this has not been initiated by the application. 

UpdateAction invokes the OnUpdate event handler for the action list. It returns true if the event handler updates the action, false otherwise. 

 

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