Use more readable wxListCtrl::AppendColumn() in the samples.
Call this function instead of InsertColumn() with incrementing indices. See #15265. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -666,14 +666,14 @@ void MyFrame::InitWithVirtualItems()
|
||||
|
||||
if ( m_smallVirtual )
|
||||
{
|
||||
m_listCtrl->InsertColumn(0, wxT("Animal"));
|
||||
m_listCtrl->InsertColumn(1, wxT("Sound"));
|
||||
m_listCtrl->AppendColumn(wxT("Animal"));
|
||||
m_listCtrl->AppendColumn(wxT("Sound"));
|
||||
m_listCtrl->SetItemCount(WXSIZEOF(SMALL_VIRTUAL_VIEW_ITEMS));
|
||||
}
|
||||
else
|
||||
{
|
||||
m_listCtrl->InsertColumn(0, wxT("First Column"));
|
||||
m_listCtrl->InsertColumn(1, wxT("Second Column"));
|
||||
m_listCtrl->AppendColumn(wxT("First Column"));
|
||||
m_listCtrl->AppendColumn(wxT("Second Column"));
|
||||
m_listCtrl->SetColumnWidth(0, 150);
|
||||
m_listCtrl->SetColumnWidth(1, 150);
|
||||
m_listCtrl->SetItemCount(1000000);
|
||||
|
Reference in New Issue
Block a user