void VObjEvtHandler::OnSetCursor(wxSetCursorEvent &event) { wxCoord x = event.GetX(), y = event.GetY(); m_window->ClientToScreen(&x, &y); m_window->GetParent()->ScreenToClient(&x, &y); wxSetCursorEvent sce(x, y); ::wxPostEvent(m_window->GetParent(), sce); }
// this is currently called (and needed) under MSW only... void wxSplitterWindow::OnSetCursor(wxSetCursorEvent& event) { // if we don't do it, the resizing cursor might be set for child window: // and like this we explicitly say that our cursor should not be used for // children windows which overlap us if ( SashHitTest(event.GetX(), event.GetY()) ) { // default processing is ok event.Skip(); } //else: do nothing, in particular, don't call Skip() }
void wxIFMFloatingWindowBase::OnSetCursor(wxSetCursorEvent &event) { wxIFMSetCursorEvent evt(event, GetComponentByPos(wxPoint(event.GetX(), event.GetY()))); if( !GetIP()->ProcessPluginEvent(evt) ) event.Skip(); }
int bmx_wxsetcursorevent_gety(wxSetCursorEvent & event) { return event.GetY(); }