Vcl.ComCtrls.TToolBar.DoQueryInsert

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DoQueryInsert(Index: Integer): Boolean; virtual;

C++

virtual bool __fastcall DoQueryInsert(int Index);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TToolBar

Description

Generates an OnCustomizeCanInsert event.

DoQueryInsert is called automatically when the user tries to add a button to a customizable tool bar. It generates an OnCustomizeCanInsert event, allowing the application to block the insertion.

Index is the index (in the Buttons property) where the user is trying to insert a new button.

See Also