Vcl.ComCtrls.TToolBar.RepositionButton
Delphi
procedure RepositionButton(Index: Integer);
C++
void __fastcall RepositionButton(int Index);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TToolBar |
Description
Updates the position of a specified button in the toolbar.
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.