Vcl.ActnMan.TCustomActionManager.OnGetBarsClass
Delphi
property OnGetBarsClass: TGetBarsClassEvent read FOnGetBarsClass write FOnGetBarsClass;
C++
__property TGetBarsClassEvent OnGetBarsClass = {read=FOnGetBarsClass, write=FOnGetBarsClass};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | protected | Vcl.ActnMan.pas Vcl.ActnMan.hpp |
Vcl.ActnMan | TCustomActionManager |
Description
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.