Vcl.ComCtrls.TToolBar.WrapButtons
Delphi
function WrapButtons(var NewWidth, NewHeight: Integer): Boolean;
C++
bool __fastcall WrapButtons(int &NewWidth, int &NewHeight);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TToolBar |
Description
Rearranges the toolbar's buttons so they fit in the toolbar.
Call WrapButtons to rearrange the toolbar's buttons.
NewWidth is the width in which the buttons must fit.
NewHeight is the height in which the buttons must fit.
WrapButtons returns true if the buttons fit; otherwise, WrapButtons returns false.