Vcl.ComCtrls.TToolBar.DoQueryDelete
Delphi
function DoQueryDelete(Index: Integer): Boolean; virtual;
C++
virtual bool __fastcall DoQueryDelete(int Index);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TToolBar |
Description
Generates an OnCustomizeCanDelete event.
DoQueryDelete is called automatically when the user tries to delete a button from a customizable tool bar. It generates an OnCustomizeCanDelete event, allowing the application to block the deletion.
Index is the index (in the Buttons property) of the button that the user is trying to delete.