Vcl.ComCtrls.TToolBar.OnCustomizeCanInsert

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCustomizeCanInsert: TTBCustomizeQueryEvent read FOnCustomizeCanInsert  write FOnCustomizeCanInsert;

C++

__property TTBCustomizeQueryEvent OnCustomizeCanInsert = {read=FOnCustomizeCanInsert, write=FOnCustomizeCanInsert};

Properties

Type Visibility Source Unit Parent
event published
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TToolBar

Description

Occurs when user tries to add a button to the toolbar.

When the Customizable property is true, the user can add buttons to the toolbar using the toolbar customize dialog. OnCustomizeCanInsert occurs when the user tries to add a button, and allows the application to reject the insertion. If the OnCustomizeCanInsert event handler sets its Allow parameter to false, the toolbar customize dialog rejects the insertion.

OnCustomizeCanInsert is an event handler of type Vcl.ComCtrls.TTBCustomizeQueryEvent.

See Also