[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

TControlScrollBar.Size

Height or width for the scroll bar.

Declaration

Source position: forms.pp line 151

public property TControlScrollBar.Size : Integer
  read GetSize
  stored False;

Description

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.

See also

TControlScrollBar.Kind

  

The orientation for the scroll bar: horizontal or vertical.

TControlScrollBar.ControlSize

  

Returns the size for the associated control.

TControlScrollBar.ClientSize

  

Gets the size for the scroll bar based on the client area in the associated control.

TControlScrollBar.ClientSizeWithBar

  

Calculates the size of the associated control when the scroll bar is Visible.

TControlScrollBar.ClientSizeWithoutBar

  

Calculates the size of the associated control when the scroll bar is not Visible.

TScrollBarKind

  

The orientation of a scroll bar.


Version 4.0 Generated 2025-05-03 Home