]> git.saurik.com Git - wxWidgets.git/commitdiff
Need to call wxVScrolledWindow::UpdateScrollbar() in wxVListBox EVT_SIZE handler...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 5 Oct 2008 13:56:40 +0000 (13:56 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 5 Oct 2008 13:56:40 +0000 (13:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/vlbox.h
src/generic/vlbox.cpp

index 6887686b03f973290782e8c8b2bbf05c8fc8129c..f4b2e945bfa94e4a064eae29ed5e7917fe87966e 100644 (file)
@@ -243,6 +243,7 @@ protected:
     void OnLeftDown(wxMouseEvent& event);
     void OnLeftDClick(wxMouseEvent& event);
     void OnSetOrKillFocus(wxFocusEvent& event);
+    void OnSize(wxSizeEvent& event);
 
     // common part of all ctors
     void Init();
index df4a9bbfb0c70d4868ab72f39e0a09309a31e232..04ad587675ce0da51ec5255b1a2334f4f8bae00c 100644 (file)
@@ -51,6 +51,8 @@ BEGIN_EVENT_TABLE(wxVListBox, wxVScrolledWindow)
 
     EVT_SET_FOCUS(wxVListBox::OnSetOrKillFocus)
     EVT_KILL_FOCUS(wxVListBox::OnSetOrKillFocus)
+
+    EVT_SIZE(wxVListBox::OnSize)
 END_EVENT_TABLE()
 
 // ============================================================================
@@ -494,6 +496,11 @@ void wxVListBox::OnSetOrKillFocus(wxFocusEvent& WXUNUSED(event))
     RefreshSelected();
 }
 
+void wxVListBox::OnSize(wxSizeEvent& event)
+{
+    UpdateScrollbar();
+    event.Skip();
+}
 
 // ============================================================================
 // wxVListBox keyboard/mouse handling