TTBCustomizeQueryEvent is the type of event handlers that allow a toolbar to decide whether to allow a user customization.
TTBCustomizeQueryEvent = procedure (Sender: TToolbar; Index: Integer; var Allow: Boolean) of object;
(Sender: TToolbar; Index: Integer; var Allow: Boolean) ( TTBCustomizeQueryEvent)();
ComCtrls
TTBCustomizeQueryEvent is the type for the OnCustomizeCanInsert and OnCustomizeCanDelete events. It allows a toolbar to approve or block the insertion or deletion of a button by the user.
Sender is the customizable toolbar that the user is trying to modify.
Index is the index of the button to be deleted or the index where a new button is to be inserted.
Allow returns an indication of whether the user can proceed with the operation. On entry, Allow is T t rue, indicating that the user can add or delete the button. The event handler can change Allow to F f alse to block the change to the toolbar.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|