[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Height or width for the scroll bar.
Source position: forms.pp line 151
public property TControlScrollBar.Size : Integer |
Size is a read-only Integer property with the width or height in pixels for the scroll bar indicated in the Kind property. For a horizontal scroll bar (Kind is sbHorizontal), the return value is the height of the scroll bar. Conversely, for a vertical scroll bar (Kind is sbVertical) the value is the width of the scroll bar.
Size calls the GetScrollbarSize routine in the LCL interface to get the return value when the Handle for the control has been allocated. Otherwise, the GetSystemMetrics method in the widgetset class is called to get the return value.
Use ControlSize, ClientSize, ClientSizeWithBar, and ClientSizeWithoutBar methods to get the control or client width for the control.
|
The orientation for the scroll bar: horizontal or vertical. |
|
|
Returns the size for the associated control. |
|
|
Gets the size for the scroll bar based on the client area in the associated control. |
|
|
Calculates the size of the associated control when the scroll bar is Visible. |
|
|
Calculates the size of the associated control when the scroll bar is not Visible. |
|
|
The orientation of a scroll bar. |
Version 4.0 | Generated 2025-05-03 | Home |