Demonstrate checkboxes in virtual wxListCtrl
This commit is contained in:
@@ -74,6 +74,9 @@ public:
|
||||
|
||||
void OnRightClick(wxMouseEvent& event);
|
||||
|
||||
virtual void CheckItem(long item, bool check) wxOVERRIDE;
|
||||
virtual bool IsItemChecked(long item) const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
void ShowContextMenu(const wxPoint& pos);
|
||||
wxLog *m_logOld;
|
||||
@@ -83,11 +86,14 @@ private:
|
||||
void LogColEvent(const wxListEvent& event, const wxString& eventName);
|
||||
|
||||
virtual wxString OnGetItemText(long item, long column) const wxOVERRIDE;
|
||||
virtual bool OnGetItemIsChecked(long item) const wxOVERRIDE;
|
||||
virtual int OnGetItemColumnImage(long item, long column) const wxOVERRIDE;
|
||||
virtual wxItemAttr *OnGetItemAttr(long item) const wxOVERRIDE;
|
||||
|
||||
long m_updated;
|
||||
|
||||
// checked boxes in virtual list
|
||||
wxSelectionStore m_checked;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(MyListCtrl);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
|
Reference in New Issue
Block a user