]> git.saurik.com Git - wxWidgets.git/commitdiff
no real changes
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 13 Jun 2003 22:32:23 +0000 (22:32 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 13 Jun 2003 22:32:23 +0000 (22:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/htlbox/htlbox.cpp
samples/htlbox/htlbox.dsp

index 06563fe4d743bda450daae82485109cb4065ff0c..1a87b03df6f7c544cc9363f5b75a8065ff7a887f 100644 (file)
@@ -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
index ab278a2852198c13855b2dcd00725161068bc6d4..b80d9051470263cd4b60b36fa1bcfe00a67d918b 100644 (file)
@@ -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