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

TCustomListBox.Columns

The number of visible vertical columns.

Declaration

Source position: stdctrls.pp line 593

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

Description

A ListBox can have multiple columns, not only multiple rows.

When Columns is greater than zero, it specifies the number of columns that are visible without horizontal scrolling. I.e. the width of a single column becomes Width/Columns.

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