29.1 Overview

Listviewitem class can be used when creating listviews to add listview entries already at object creation time. See Listview class for details.

Listviewitem class entries must always be embedded inside a <column> declaration. Its XML tag is <item>. See Listviewcolumn class for details.

Note that you cannot create instances of this class using moai.CreateObject(). Instead, you have to use Listview.Insert to create new items at runtime. Also, you cannot change any attributes of listview items using this class. If you want to change the text or the icon of a listview entry, you need to use Listview.Rename instead.


Show TOC