RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolButton.SetToolBar Method

Associates the tool button with a tool bar.

Pascal
procedure SetToolBar(AToolBar: TToolBar);
C++
__fastcall SetToolBar(TToolBar AToolBar);

Call SetToolBar to add the tool button to a tool bar. Specify the tool bar as the AToolBar parameter. 

If the tool button is already contained by a tool bar, SetToolBar removes the button from its current tool bar before moving it to the new tool bar. 

 

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