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

TCustomListBox.Columns

The number of visible vertical columns displayed in the control.

Declaration

Source position: stdctrls.pp line 639

public property TCustomListBox.Columns : Integer
  read FColumns
  write SetColumns
  default 0;

Description

A list box can have multiple columns, as well as multiple rows. When Columns is greater than 0 (zero), it specifies the number of columns that are visible without horizontal scrolling. i. e. the width of a single column becomes Width/Columns. Setting a new value for Columns causes the widgetset class to be notified when a handle has been allocated for the control.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.