@style{wxLC_SINGLE_SEL}
Single selection (default is multiple).
@style{wxLC_SORT_ASCENDING}
- Sort in ascending order (must still supply a comparison callback in
- SortItems.
+ Sort in ascending order. (You must still supply a comparison callback
+ in wxListCtrl::SortItems.)
@style{wxLC_SORT_DESCENDING}
- Sort in descending order (must still supply a comparison callback
- in SortItems.
+ Sort in descending order. (You must still supply a comparison callback
+ in wxListCtrl::SortItems.)
@style{wxLC_HRULES}
Draws light horizontal rules between rows in report mode.
@style{wxLC_VRULES}
@category{ctrl}
<!-- @appearance{listctrl.png} -->
- @see @ref overview_wxlistctrloverview "wxListCtrl overview", wxListView,
+ @see @ref overview_listctrl "wxListCtrl Overview", wxListView,
wxListBox, wxTreeCtrl, wxImageList, wxListEvent, wxListItem
*/
class wxListCtrl : public wxControl
{
public:
//@{
+ /**
+ Constructor, creating and showing a list control.
+ */
+ wxListCtrl();
+
/**
Constructor, creating and showing a list control.
Window position.
@param size
Window size. If wxDefaultSize is specified then the window is
- sized
- appropriately.
+ sized appropriately.
@param style
Window style. See wxListCtrl.
@param validator
@see Create(), wxValidator
*/
- wxListCtrl();
wxListCtrl(wxWindow* parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
//@{
/**
- Insert an image/string item.
-
+ Insert a wxListItem.
@param info
wxListItem object
+ */
+ long InsertItem(wxListItem& info);
+
+ /**
+ Insert an string item.
@param index
Index of the new item, supplied by the application
@param label
String label
- @param imageIndex
- index into the image list associated with this control and view style
*/
- long InsertItem(wxListItem& info);
long InsertItem(long index, const wxString& label);
+
+ /**
+ Insert an image item.
+ @param index
+ Index of the new item, supplied by the application
+ @param imageIndex
+ Index into the image list associated with this control and view style
+ */
long InsertItem(long index, int imageIndex);
+
+ /**
+ Insert an image/string item.
+ @param index
+ Index of the new item, supplied by the application
+ @param label
+ String label
+ @param imageIndex
+ Index into the image list associated with this control and view style
+ */
long InsertItem(long index, const wxString& label,
int imageIndex);
//@}
/**
This function must be overloaded in the derived class for a control with
- @c wxLC_VIRTUAL style having an @ref setimagelist() "image list"
+ @c wxLC_VIRTUAL style having an @ref SetImageList() "image list"
(if the control doesn't have an image list, it is not necessary to overload
it). It should return the index of the items image in the controls image list
or -1 for no image.
Sets a string field at a particular column.
*/
bool SetItem(wxListItem& info);
- long SetItem(long index, int col, const wxStringamp; label,
+ long SetItem(long index, int col, const wxString& label,
int imageId = -1);
m_mask m_state field is valid.
@library{wxbase}
@category{FIXME}
- @see @ref overview_wxlistctrloverview "wxListCtrl overview", wxListCtrl,
+ @see @ref overview_listctrl "wxListCtrl Overview", wxListCtrl,
wxListItem
*/
class wxListItemAttr