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:
Vadim Zeitlin
2013-06-29 12:52:34 +00:00
parent 0280c08726
commit dc2f83c4f1
3 changed files with 8 additions and 8 deletions

View File

@@ -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);