Vcl.ActnPopup.TPopupActionBar.OnGetControlClass

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnGetControlClass: TGetControlClassEvent read FOnGetControlClass

C++

__property Vcl::Actnman::TGetControlClassEvent OnGetControlClass = {read=FOnGetControlClass, write=FOnGetControlClass};

Properties

Type Visibility Source Unit Parent
event published
Vcl.ActnPopup.pas
Vcl.ActnPopup.hpp
Vcl.ActnPopup TPopupActionBar

Description

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

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