setting the correct event object for EVT_ENTER_WINDOW and EVT_LEAVE_WINDOW

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2002-04-29 06:38:20 +00:00
parent ba3e10c9f4
commit d1bdc41d65
2 changed files with 4 additions and 2 deletions

View File

@ -1764,6 +1764,7 @@ void wxApp::MacHandleOSEvent( WXEVENTREF evr )
wxMouseEvent eventleave(event);
eventleave.SetEventType( wxEVT_LEAVE_WINDOW );
wxWindow::s_lastMouseWindow->ScreenToClient( &eventleave.m_x, &eventleave.m_y );
eventleave.SetEventObject( wxWindow::s_lastMouseWindow ) ;
wxWindow::s_lastMouseWindow->GetEventHandler()->ProcessEvent(eventleave);
}
@ -1772,7 +1773,7 @@ void wxApp::MacHandleOSEvent( WXEVENTREF evr )
wxMouseEvent evententer(event);
evententer.SetEventType( wxEVT_ENTER_WINDOW );
currentMouseWindow->ScreenToClient( &evententer.m_x, &evententer.m_y );
evententer.SetEventObject( currentMouseWindow ) ;
currentMouseWindow->GetEventHandler()->ProcessEvent(evententer);
}
wxWindow::s_lastMouseWindow = currentMouseWindow ;

View File

@ -1764,6 +1764,7 @@ void wxApp::MacHandleOSEvent( WXEVENTREF evr )
wxMouseEvent eventleave(event);
eventleave.SetEventType( wxEVT_LEAVE_WINDOW );
wxWindow::s_lastMouseWindow->ScreenToClient( &eventleave.m_x, &eventleave.m_y );
eventleave.SetEventObject( wxWindow::s_lastMouseWindow ) ;
wxWindow::s_lastMouseWindow->GetEventHandler()->ProcessEvent(eventleave);
}
@ -1772,7 +1773,7 @@ void wxApp::MacHandleOSEvent( WXEVENTREF evr )
wxMouseEvent evententer(event);
evententer.SetEventType( wxEVT_ENTER_WINDOW );
currentMouseWindow->ScreenToClient( &evententer.m_x, &evententer.m_y );
evententer.SetEventObject( currentMouseWindow ) ;
currentMouseWindow->GetEventHandler()->ProcessEvent(evententer);
}
wxWindow::s_lastMouseWindow = currentMouseWindow ;