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

@@ -1620,9 +1620,9 @@ wxMediaPlayerNotebookPage::wxMediaPlayerNotebookPage(wxMediaPlayerFrame* parentF
// Column two is the name of the file
//
// Column three is the length in seconds of the file
m_playlist->InsertColumn(0,_(""), wxLIST_FORMAT_CENTER, 20);
m_playlist->InsertColumn(1,_("File"), wxLIST_FORMAT_LEFT, /*wxLIST_AUTOSIZE_USEHEADER*/305);
m_playlist->InsertColumn(2,_("Length"), wxLIST_FORMAT_CENTER, 75);
m_playlist->AppendColumn(_(""), wxLIST_FORMAT_CENTER, 20);
m_playlist->AppendColumn(_("File"), wxLIST_FORMAT_LEFT, /*wxLIST_AUTOSIZE_USEHEADER*/305);
m_playlist->AppendColumn(_("Length"), wxLIST_FORMAT_CENTER, 75);
#if wxUSE_DRAG_AND_DROP
m_playlist->SetDropTarget(new wxPlayListDropTarget(*m_playlist));