RAD Studio VCL Reference
TPopupActionBar.OnGetControlClass Event

Occurs when a popup menu item is to be placed on the popup action bar.

property OnGetControlClass: TGetControlClassEvent;
__property TGetControlClassEvent OnGetControlClass;

Write an OnGetControlClass event handler to specify the class of item that the action bar 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 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!