RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolBar.RepositionButton Method

Updates the position of a specified button in the toolbar.

Pascal
procedure RepositionButton(Index: Integer);
C++
__fastcall RepositionButton(int Index);

TToolBar uses RepositionButton internally when laying out the buttons in the toolbar. RepositionButton calculates where to place the button with the specified index, given the positions of all previous buttons in the toolbar. It then changes the position and size of the specified tool button. 

 

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