Sign in Join
FPDoc Onlineexperiment

TMemoScrollbar.Size property

Member of TMemoScrollbarpublicIn unit StdCtrls

Height or width for the scroll bar.

Declaration

pascal
property Size:;

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.

This description is the one of Forms.TControlScrollBar.Size.

See also

  • Kind
  • ControlSize
  • ClientSize
  • ClientSizeWithBar
  • ClientSizeWithoutBar
  • TScrollBarKind

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