Name
Listview.InsertColumn -- insert new column (V2.0)
Synopsis
moai.DoMethod(id, "InsertColumn", pos, cid$[, t])
Function
Insert a new column into the listview. The column will be inserted into the position specified by pos and will be given the identifier specified by cid$. The new column will be added in front of the column specified by pos. This can be an absolute index position starting at 0 for the first column or one of the following special values:

First
Insert as first column.

Last
Insert as last column.

The optional argument t can be set to a table containing one or more of the following options:

Align
Desired column alignment. See Listviewcolumn.Align for details.

Checkbox
Flag indicating if column should use checkboxes. See Listviewcolumn.Checkbox for details.

Editable
Flag indicating if column should be editable. See Listviewcolumn.Editable for details.

Hide
Flag indicating if column should be hidden. See Listviewcolumn.Hide for details.

Icon
Flag indicating whether column should use icons. See Listviewcolumn.Icon for details.

IconType
Icon type to use. See Listviewcolumn.IconType for details.

IconScale
Toggle icon scaling. See Listviewcolumn.IconScale for details.

Sortable
Flag indicating if column should be sortable. See Listviewcolumn.Sortable for details.

SortOrder
Desired column sort order. See Listviewcolumn.SortOrder for details.

Title
Desired column title. See Listviewcolumn.Title for details.

Width
Desired column width. See Listviewcolumn.Width for details.

Note that Listview.InsertColumn is only supported if the listview is in Listview or Dataview mode. See Listview.ForceMode for details.

Inputs
id
id of the listview object
pos
insert position as absolute number or special value (see above)
cid$
identifier for new column
t
optional: table containing further parameters

Show TOC