Two missing #includes in image code.
Corrected item coloring in wxListCtrl report mode (incl sample). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -287,6 +287,21 @@ void MyFrame::OnReportView(wxCommandEvent& WXUNUSED(event))
|
||||
wxSprintf(buf, _T("Item %d in column 2"), i);
|
||||
tmp = m_listCtrl->SetItem(i, 2, buf);
|
||||
}
|
||||
|
||||
#ifndef __WXMSW__
|
||||
// we leave all mask fields to 0 and only change the colour
|
||||
wxListItem first;
|
||||
first.m_itemId = 0;
|
||||
first.m_colour = wxBLUE;
|
||||
m_listCtrl->SetItem( first );
|
||||
|
||||
first.m_itemId = 2;
|
||||
first.m_colour = wxLIGHT_GREY;
|
||||
m_listCtrl->SetItem( first );
|
||||
first.m_itemId = 3;
|
||||
first.m_colour = wxLIGHT_GREY;
|
||||
m_listCtrl->SetItem( first );
|
||||
#endif
|
||||
|
||||
m_listCtrl->SetColumnWidth( 0, wxLIST_AUTOSIZE );
|
||||
m_listCtrl->SetColumnWidth( 1, wxLIST_AUTOSIZE );
|
||||
|
Reference in New Issue
Block a user