Vcl.ComCtrls.TToolBar.WrapButtons
Delphi
function WrapButtons(var NewWidth, NewHeight: Integer): Boolean;
C++
bool __fastcall WrapButtons(int &NewWidth, int &NewHeight);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TToolBar |
説明
ツールバーにすべてのボタンが収まるように各ボタンを再配列します。
WrapButtons を呼び出すと,ツールバーのすべてのボタンを再配列できます。
NewWidth パラメータは,すべてのボタンを収容する幅です。
NewHeight パラメータは,すべてのボタンを収容する高さです。
ボタンを収容する場合,WrapButtons は true を返します。それ以外の場合,WrapButtons は false を返します。