]> git.saurik.com Git - wxWidgets.git/commitdiff
also generate wxEVT_SCROLL_CHANGED as under wxMSW
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Dec 2005 02:55:03 +0000 (02:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Dec 2005 02:55:03 +0000 (02:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
src/gtk/slider.cpp
src/gtk1/slider.cpp

index 8474299b820f2957aaac797962a3a15c3565644e..22546af7c11a4d1b0a92688cac826bf8a84f1a78 100644 (file)
@@ -53,6 +53,7 @@ wxGTK:
 
 - wxEVT_MENU_CLOSE and wxEVT_MENU_OPENED for popup menus are now generated
 - Implemented wxCURSOR_BLANK support
+- wxSlider generates all scroll events now and not only wxEVT_SCROLL_THUMBTRACK
 - Fixed problem with choice editor in wxGrid whereby the editor
   lost focus when the combobox menu was shown.
 - Fixed problem trying to print from a preview, whereby wrong printer
index b4e9701b1b2d260f1b0670987fe092c4d18f007a..ba70dee2571c45dbd2615b077e67d7ed2d5ff5b6 100644 (file)
@@ -60,6 +60,13 @@ ProcessScrollEvent(wxSlider *win, wxEventType evtType, double dvalue)
     event.SetEventObject( win );
     win->GetEventHandler()->ProcessEvent( event );
 
+    if ( evtType != wxEVT_SCROLL_THUMBTRACK )
+    {
+        wxScrollEvent event2(wxEVT_SCROLL_CHANGED, win->GetId(), value, orient);
+        event2.SetEventObject( win );
+        win->GetEventHandler()->ProcessEvent( event2 );
+    }
+
     wxCommandEvent cevent( wxEVT_COMMAND_SLIDER_UPDATED, win->GetId() );
     cevent.SetEventObject( win );
     cevent.SetInt( value );
index b4e9701b1b2d260f1b0670987fe092c4d18f007a..ba70dee2571c45dbd2615b077e67d7ed2d5ff5b6 100644 (file)
@@ -60,6 +60,13 @@ ProcessScrollEvent(wxSlider *win, wxEventType evtType, double dvalue)
     event.SetEventObject( win );
     win->GetEventHandler()->ProcessEvent( event );
 
+    if ( evtType != wxEVT_SCROLL_THUMBTRACK )
+    {
+        wxScrollEvent event2(wxEVT_SCROLL_CHANGED, win->GetId(), value, orient);
+        event2.SetEventObject( win );
+        win->GetEventHandler()->ProcessEvent( event2 );
+    }
+
     wxCommandEvent cevent( wxEVT_COMMAND_SLIDER_UPDATED, win->GetId() );
     cevent.SetEventObject( win );
     cevent.SetInt( value );