From 277707731e130229580e7d56b78c119798d3da32 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 27 Aug 2002 09:38:11 +0000 Subject: [PATCH] added icons to virtual list mode git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/listctrl/listtest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/listctrl/listtest.cpp b/samples/listctrl/listtest.cpp index 40a0d7655e..0a1211b9fd 100644 --- a/samples/listctrl/listtest.cpp +++ b/samples/listctrl/listtest.cpp @@ -491,6 +491,8 @@ void MyFrame::OnVirtualView(wxCommandEvent& WXUNUSED(event)) void MyFrame::InitWithVirtualItems() { + m_listCtrl->SetImageList(m_imageListSmall, wxIMAGE_LIST_SMALL); + m_listCtrl->InsertColumn(0, _T("First Column")); m_listCtrl->InsertColumn(1, _T("Second Column")); m_listCtrl->SetColumnWidth(0, 150); @@ -774,6 +776,8 @@ void MyListCtrl::OnActivated(wxListEvent& event) void MyListCtrl::OnFocused(wxListEvent& event) { LogEvent(event, _T("OnFocused")); + + event.Skip(); } void MyListCtrl::OnListKeyDown(wxListEvent& event) -- 2.45.2