Sign in Join
FPDoc Onlineexperiment

TControlScrollBar.Size property

Member of TControlScrollBarpublicIn unit Forms

Height or width for the scroll bar.

Declaration

pascal
property 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.