From 4636a1e8f869e405523113971791b3efac5f7c4a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 13 Jun 2003 22:32:23 +0000 Subject: [PATCH] no real changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/htlbox/htlbox.cpp | 10 +++------- samples/htlbox/htlbox.dsp | 8 ++------ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/samples/htlbox/htlbox.cpp b/samples/htlbox/htlbox.cpp index 06563fe4d7..1a87b03df6 100644 --- a/samples/htlbox/htlbox.cpp +++ b/samples/htlbox/htlbox.cpp @@ -316,7 +316,7 @@ void MyFrame::OnToggleMulti(wxCommandEvent& event) void MyFrame::OnSelectAll(wxCommandEvent& WXUNUSED(event)) { - m_hlbox->SelectRange(0, m_hlbox->GetItemCount() - 1); + m_hlbox->SelectAll(); } void MyFrame::OnUpdateUISelectAll(wxUpdateUIEvent& event) @@ -412,14 +412,10 @@ MyHtmlListBox::MyHtmlListBox(wxWindow *parent, bool multi) SetItemCount(m_file.GetLineCount()); } #else - SetItemCount(10); + SetItemCount(1000); #endif - // select something - if ( HasMultipleSelection() ) - Select(3); - else - SetSelection(3); + SetSelection(3); } void MyHtmlListBox::OnDrawSeparator(wxDC& dc, wxRect& rect, size_t) const diff --git a/samples/htlbox/htlbox.dsp b/samples/htlbox/htlbox.dsp index ab278a2852..b80d905147 100644 --- a/samples/htlbox/htlbox.dsp +++ b/samples/htlbox/htlbox.dsp @@ -149,19 +149,15 @@ SOURCE=.\htlbox.cpp # End Source File # Begin Source File -SOURCE=..\..\src\generic\htmllbox.cpp -# End Source File -# Begin Source File - SOURCE=.\htlbox.rc # End Source File # Begin Source File -SOURCE=..\..\src\generic\vlbox.cpp +SOURCE=..\..\src\generic\htmllbox.cpp # End Source File # Begin Source File -SOURCE=..\..\src\generic\selstore.cpp +SOURCE=..\..\src\generic\vlbox.cpp # End Source File # Begin Source File -- 2.45.2