[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Adjusts tool button sizes and positions, and handles wrapping to new rows or columns.
Source position: comctrls.pp line 2333
protected function TToolBar.WrapButtons( |
UseSize: Integer; |
out NewWidth: Integer; |
out NewHeight: Integer; |
Simulate: Boolean |
):Boolean; |
UseSize |
|
Size requested for the tool buttons (height for vertical orientation, width for horizontal orientation). |
NewWidth |
|
Returns the new width calculated for the buttons. |
NewHeight |
|
Returns the new height calculated for the buttons. |
Simulate |
|
True when the tool button sizes are being recalculated but not actually drawn on the control. |
Always returns True in WrapButtons.
WrapButtons is a Boolean function used to resize and position buttons on the tool bar. WrapButtons positions buttons from left to right in the client display area, and repositions any child control with its Align property set to clNone.
When Simulate is True, the child control sizes and positions are calculated but not applied to the tool bar.
Set Wrapable to True to allow a new row or column to be created when the cumulative button width is larger than the width for the tool bar. Or set the Wrap property in a specific tool button to True to force it and subsequent controls onto a new row.
Version 3.2 | Generated 2024-02-25 | Home |