Vcl.ActnMan.TCustomActionBar.OnGetControlClass
Delphi
property OnGetControlClass: TGetControlClassEvent read FOnGetControlClass write FOnGetControlClass;
C++
__property TGetControlClassEvent OnGetControlClass = {read=FOnGetControlClass, write=FOnGetControlClass};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | Vcl.ActnMan.pas Vcl.ActnMan.hpp |
Vcl.ActnMan | TCustomActionBar |
Description
Occurs when an item is to be placed on the action band.
Write an OnGetControlClass event handler to specify the class of the item that the action band should create to represent a specified action client.
Sender
is the action band that needs to generate a child control to represent an action client.
AnItem
is the action client that the new control should represent.
ControlClass returns the class reference for the new control. This should be a descendant of TCustomActionControl.