+ int value = (int)(dvalue < 0 ? dvalue - 0.5 : dvalue + 0.5);
+ wxScrollEvent event( evtType, win->GetId(), value, orient );
+ event.SetEventObject( win );
+ win->HandleWindowEvent( event );
+
+ if ( evtType != wxEVT_SCROLL_THUMBTRACK )
+ {
+ wxScrollEvent event2(wxEVT_SCROLL_CHANGED, win->GetId(), value, orient);
+ event2.SetEventObject( win );
+ win->HandleWindowEvent( event2 );
+ }
+
+ wxCommandEvent cevent( wxEVT_SLIDER, win->GetId() );
+ cevent.SetEventObject( win );
+ cevent.SetInt( value );
+ win->HandleWindowEvent( cevent );
+}