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:
@@ -53,6 +53,7 @@ wxGTK:
|
|||||||
|
|
||||||
- wxEVT_MENU_CLOSE and wxEVT_MENU_OPENED for popup menus are now generated
|
- wxEVT_MENU_CLOSE and wxEVT_MENU_OPENED for popup menus are now generated
|
||||||
- Implemented wxCURSOR_BLANK support
|
- 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
|
- Fixed problem with choice editor in wxGrid whereby the editor
|
||||||
lost focus when the combobox menu was shown.
|
lost focus when the combobox menu was shown.
|
||||||
- Fixed problem trying to print from a preview, whereby wrong printer
|
- 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 );
|
event.SetEventObject( win );
|
||||||
win->GetEventHandler()->ProcessEvent( event );
|
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() );
|
wxCommandEvent cevent( wxEVT_COMMAND_SLIDER_UPDATED, win->GetId() );
|
||||||
cevent.SetEventObject( win );
|
cevent.SetEventObject( win );
|
||||||
cevent.SetInt( value );
|
cevent.SetInt( value );
|
||||||
|
@@ -60,6 +60,13 @@ ProcessScrollEvent(wxSlider *win, wxEventType evtType, double dvalue)
|
|||||||
event.SetEventObject( win );
|
event.SetEventObject( win );
|
||||||
win->GetEventHandler()->ProcessEvent( event );
|
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() );
|
wxCommandEvent cevent( wxEVT_COMMAND_SLIDER_UPDATED, win->GetId() );
|
||||||
cevent.SetEventObject( win );
|
cevent.SetEventObject( win );
|
||||||
cevent.SetInt( value );
|
cevent.SetInt( value );
|
||||||
|
Reference in New Issue
Block a user