RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolBar.OnCustomizeCanInsert Event

Occurs when user tries to add a button to the toolbar.

Pascal
property OnCustomizeCanInsert: TTBCustomizeQueryEvent;
C++
__property TTBCustomizeQueryEvent OnCustomizeCanInsert;

When the Customizable property is true, the user can add buttons to the toolbar using the toolbar customize dialog. OnCustomizeCanInsert occurs when the user tries to add a button, and allows the application to reject the insertion. If the OnCustomizeCanInsert event handler sets its Allow parameter to false, the toolbar customize dialog rejects the insertion. 

 

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