RAD Studio VCL Reference
TCustomActionList.UpdateAction Method

Generates an OnUpdate event.

function UpdateAction(Action: TBasicAction): Boolean; override;
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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!