Classes.TComponent.UpdateAction
From RAD Studio VCL Reference
Contents |
Delphi Information
From Classes.pas
function UpdateAction(Action: TBasicAction): Boolean; virtual;
Unit: Classes
Type: method
Visibility: public
Member Of: TComponent
C++ Information
From Classes.hpp
virtual bool __fastcall UpdateAction(Classes::TBasicAction * Action);
Unit: Classes
Type: method
Visibility: public
Member Of: TComponent
Description
Updates the state of an action.
UpdateAction is used to update the state of an action. Action is a TBasicAction or any descendant.
UpdateAction first checks if the provided action is compatible with the component and then updates it. The return value is a boolean. A value of true is returned if the action was updated, and false otherwise.
Derived classes can override this method to implement a distinct way of handling action updates.