RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolBar.DoQueryDelete Method

Generates an OnCustomizeCanDelete event.

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

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!