RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolBar.DoQueryInsert Method

Generates an OnCustomizeCanInsert event.

Pascal
function DoQueryInsert(Index: Integer): Boolean; virtual;
C++
virtual __fastcall Boolean DoQueryInsert(int Index);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!