This class currently simply presents a simpler to use interface for the ListCtrl—it can be thought of as a facade for that complicated class. Using it is preferable to using ListCtrl directly whenever possible because in the future some ports might implement ListView but not the full set of ListCtrl features.
Other than different interface, this class is identical to ListCtrl. In particular, it uses the same events, same windows styles and so on.
clear_column_image(Integer col)
Resets the column image—after calling this function, no image will be shown.
focus(Integer index)
Sets focus to the item with the given index.
Integer get_first_selected()
Returns the first selected item in a (presumably) multiple selection control. Tigether with get_next_selected it can be used to iterate over all selected items in the control.
The fisrt selected item, if any, $-1$ otherwise.
Integer get_focused_item()
Returns the currently focused item or $-1$ if none.
Integer get_next_selected(Integer item)
Used together with get_first_selected to iterate over all selected items in the control.
Returns the next selected item or $-1$ if there are no more of them.
Boolean is_selected(Integer index)
Returns true if the item with the given index is selected,
false otherwise.
select(long n, Boolean on = true)
Selects or unselects the given item.
true (default), selects the item, otherwise unselects itset_column_image(Integer col, Integer image)
Sets the column image for the specified column. To use the column images, the control must have a valid image list with at least one image.
[This page automatically generated from the Textile source at Thu May 01 00:50:40 +0100 2008]