also generate wxEVT_SCROLL_CHANGED as under wxMSW

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-12-24 02:55:03 +00:00
parent 2b0246530d
commit 8e3e14c487
3 changed files with 15 additions and 0 deletions

View 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

View 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 );

View 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 );