RAD Studio VCL Reference
|
Occurs when the user tries to add a new button to the tool bar.
property OnCustomizeNewButton: TTBNewButtonEvent;
__property TTBNewButtonEvent OnCustomizeNewButton;
Write an OnCustomizeNewButton event handler to supply your own TToolButton objects to represent the tool buttons that a user adds in the toolbar customize dialog.
Sender is the toolbar to which the user is adding a button.
Index is the index in the Buttons property where the new button will appear. This should be assigned as the Index property of the new button.
Button returns a TToolButton object that the event handler creates and initializes. It is used to represent the new tool button in the Buttons property. If the event handler does not return a TToolButton object, the add operation fails.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|