Vcl.ActnMan.TActionManager.OnGetBarsClass

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnGetBarsClass: TGetBarsClassEvent read FOnGetBarsClass write FOnGetBarsClass;

C++

__property OnGetBarsClass;

Properties

Type Visibility Source Unit Parent
event published
Vcl.ActnMan.pas
Vcl.ActnMan.hpp
Vcl.ActnMan TActionManager

Description

Occurs before TActionManager creates its ActionBars collection.

Vcl.ActnMan.TActionManager.OnGetBarsClass inherits from Vcl.ActnMan.TCustomActionManager.OnGetBarsClass. All content below this line refers to Vcl.ActnMan.TCustomActionManager.OnGetBarsClass.

Occurs before TActionManager creates its ActionBars collection.

Write an OnGetBarsClass event handler to change the type of the TActionBars collection to a descedant of TActionBars. OnGetBarsClass provides an opportunity to change the class used for the TActionBars collection. By implementing this event and returning a descendant of TActionBars, the developer can add new properties and new functionality to the collection for use within action bands.