SetValue( value ) ;
wxScrollEvent event(wxEVT_SCROLL_THUMBTRACK, m_windowId);
- event.SetPosition(GetControlValue( m_macControl) );
+ event.SetPosition(value);
event.SetEventObject( this );
+ GetEventHandler()->ProcessEvent(event);
-#if WXWIN_COMPATIBILITY
+ wxCommandEvent cevent( wxEVT_COMMAND_SLIDER_UPDATED, m_windowId );
+ cevent.SetInt( value );
+ cevent.SetEventObject( this );
- wxEventType oldEvent = event.GetEventType();
- event.SetEventType( wxEVT_COMMAND_SLIDER_UPDATED );
- if ( !GetEventHandler()->ProcessEvent(event) )
- {
- event.SetEventType( oldEvent );
- if (!GetParent()->GetEventHandler()->ProcessEvent(event))
- event.Skip();
- }
-#else
- GetEventHandler()->ProcessEvent(event);
-#endif
+ GetEventHandler()->ProcessEvent( cevent );
}