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

TCustomListBox.ScrollWidth

The virtual width of the list box, in pixels.

Declaration

Source position: stdctrls.pp line 675

public property TCustomListBox.ScrollWidth : Integer
  read GetScrollWidth
  write SetScrollWidth
  default 0;

Description

ScrollWidth is an Integer property with the logical horizontal extent for the list box, or the scrollable area inside the control. When ScrollWidth is set to a value larger than ClientWidth, the horizontal scrollbar is displayed for the control.

The value for ScrollWidth is read from the widgetset class (at run-time) when a Handle has been allocated for the control. Changing the value for the property causes the value in the widgetset class to be updated.

The default value for the property is 0 (zero).

Use Columns to set the number of adjacent vertical columns used to display the items in the control.

See also

TCustomListBox.Columns

  

The number of visible columns displayed on the control.


Version 3.2 Generated 2024-02-25 Home