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:
parent
2b0246530d
commit
8e3e14c487
@ -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
|
||||
|
@ -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 );
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user