Vcl.ComCtrls.TTBButtonEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TTBButtonEvent = procedure(Sender: TToolbar; Button: TToolButton) of object;

C++

typedef void __fastcall (__closure *TTBButtonEvent)(TToolBar* Sender, TToolButton* Button);

Properties

Type Visibility Source Unit Parent
type
typedef
public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls Vcl.ComCtrls

Description

TTBButtonEvent is the type of event handlers that respond when the user adds or deletes a tool button in the toolbar customize dialog.

TTBButtonEvent is the type for the Vcl.ComCtrls.TToolBar.OnCustomizeAdded and Vcl.ComCtrls.TToolBar.OnCustomizeDelete events. It allows a toolbar to respond to notifications of changes that the user makes to the items in the toolbar.

Sender is the toolbar whose button was just added or deleted.

Button is the button that was just added or deleted.

See Also