mac fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -312,20 +312,13 @@ void wxSlider::MacHandleControlClick( ControlHandle control , SInt16 controlpart
|
||||
SetValue( value ) ;
|
||||
|
||||
wxScrollEvent event(wxEVT_SCROLL_THUMBTRACK, m_windowId);
|
||||
event.SetPosition(GetControlValue( m_macControl) );
|
||||
event.SetPosition(value);
|
||||
event.SetEventObject( this );
|
||||
|
||||
#if WXWIN_COMPATIBILITY
|
||||
|
||||
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
|
||||
|
||||
wxCommandEvent cevent( wxEVT_COMMAND_SLIDER_UPDATED, m_windowId );
|
||||
cevent.SetInt( value );
|
||||
cevent.SetEventObject( this );
|
||||
|
||||
GetEventHandler()->ProcessEvent( cevent );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user