Vcl.ActnMan.TCustomActionManager.OnGetBarItemClass
Delphi
property OnGetBarItemClass: TGetBarItemClassEvent read 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.