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

TListColumn

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TListColumn - an individual column in a multi-column List control

Declaration

Source position: comctrls.pp line 1185

type TListColumn = class(TCollectionItem) end;

protected

  procedure SetIndex(); override;

  

SetIndex - calls inherited method and if this is a new index value, changes to the new column index

  function GetDisplayName; override;

  

GetDisplayName returns the Caption; if this is blank, calls inherited method

  function GetStoredWidth;

public

  constructor Create(); override;

  

Create - constructor for TListColumn: calls inherited Create then sets defaults for size, alignment and index

  destructor Destroy; override;

  

Destroy - destructor for TListColumn: if update allowed, updates columns then calls inherited Destroy

  procedure Assign(); override;

  

Assign - if source is of correct type, copies alignment, caption, visibility and size properties, otherwise calls inherited Assign which probably raises an exception

  property WidthType: TWidth; [r]

published

  property Alignment: TAlignment; [rw]

  

Sets alignment of caption: text is left or right justified or centered.

  property AutoSize: Boolean; [rw]

  

When other columns have fixed width, auto-calculate width of this column, to fill entire width.

  property Caption: TTranslateString; [rw]

  

Caption text of column.

  property ImageIndex: TImageIndex; [rw]

  

Index of icon, inside ImageList object for columns of Listview.

  property MaxWidth: TWidth; [rw]

  

Maximal width for this column.

  property MinWidth: TWidth; [rw]

  

Minimal width for this column.

  property Tag: PtrInt; [rw]

  

Int value, to store some info for this column.

  property Visible: Boolean; [rw]

  

Allow to show this column.

  property Width: TWidth; [rw]

  

Current width of column. May be calculcated auto, if AutoSize used.

Inheritance

TListColumn

  

TListColumn - an individual column in a multi-column List control

|

TCollectionItem

?

TObject

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