Vcl.ComCtrls.TCustomListView.ActionChange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ActionChange(Sender: TObject; CheckDefaults: Boolean); override;

C++

DYNAMIC void __fastcall ActionChange(System::TObject* Sender, bool CheckDefaults);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomListView

Description

Responds when the action for which this list view is a client changes.

ActionChange is called automatically when the action object specified by the Action property, or any of its properties, changes.

In TCustomListView, ActionChangechecks whether the action is a TStaticActionList object, and if so, updates the action's SmallImages and ItemIndex properties, as appropriate. It then calls the inherited method, which updates the Caption, Enabled, Hint, and Visible properties and the OnClick event handler.

The Sender parameter is the action object that changed. The CheckDefaults parameter indicates whether the control's properties should all be updated or only those that have not been explicitly changed from their default values. When CheckDefaults is true, only those properties and event handlers that have not been changed from the default values are updated.

See Also