Vcl.ComCtrls.TToolBar.OnCustomizeCanDelete

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCustomizeCanDelete: TTBCustomizeQueryEvent read FOnCustomizeCanDelete  write FOnCustomizeCanDelete;

C++

__property TTBCustomizeQueryEvent OnCustomizeCanDelete = {read=FOnCustomizeCanDelete, write=FOnCustomizeCanDelete};

Properties

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

Description

Occurs when user tries to delete one of the buttons on the toolbar.

When the Customizable property is true, the user can remove buttons from the toolbar by dragging them off the toolbar when the Shift key is pressed or using the toolbar customize dialog. OnCustomizeCanDelete occurs when the user tries to delete a button in one of these ways, and allows the application to reject the deletion. If the OnCustomizeCanDelete event handler sets its Allow parameter to false, the tool button returns to the position it occupied before the user tried to delete it.

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

See Also