API:Vcl.Forms.TApplication.UpdateAction

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function UpdateAction(Action: TBasicAction): Boolean; reintroduce;

C++

HIDESBASE bool __fastcall UpdateAction(System::Classes::TBasicAction* Action);

Properties

Type Visibility Source Unit Parent
function public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TApplication

Description

Updates the state of an action.

Vcl.Forms.TApplication.UpdateAction inherits from System.Classes.TComponent.UpdateAction. All content below this line refers to System.Classes.TComponent.UpdateAction.

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.

See Also