System.Classes.TComponent.UpdateAction
Delphi
function UpdateAction(Action: TBasicAction): Boolean; virtual;
C++
virtual bool __fastcall UpdateAction(TBasicAction* Action);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | 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 whether 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 a value of False, otherwise.
Derived classes can override this method to implement a distinct way of handling action updates.