Vcl.ActnMan.TActionManager.OnGetBarItemClass

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnGetBarItemClass: TGetBarItemClassEvent read FOnGetBarItemClass write FOnGetBarItemClass;

C++

__property OnGetBarItemClass;

Properties

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

Description

Occurs before TActionManager creates TActionBars items.

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

Occurs before TActionManager creates TActionBars items.

Write an OnGetBarItemClass event handler to change the type of the class used for the ActionBarItem. The OnGetBarItemClass event occurs after a find action fetches the item's class, but before the class is sent to the action client. OnGetBarItemClass provides an opportunity to change the class used for the items within the TActionBars collection.