Vcl.ActnMan.TCustomActionManager.OnGetBarItemClass

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnGetBarItemClass: TGetBarItemClassEvent read FOnGetBarItemClass  write FOnGetBarItemClass;

C++

__property TGetBarItemClassEvent OnGetBarItemClass = {read=FOnGetBarItemClass, write=FOnGetBarItemClass};

Properties

Type Visibility Source Unit Parent
event protected
Vcl.ActnMan.pas
Vcl.ActnMan.hpp
Vcl.ActnMan TCustomActionManager

Description

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.