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 CtrlBox2::OnSetCursor( wxSetCursorEvent &event ) { // Without this the native control sets a beam cursor wxCursor x(wxCURSOR_ARROW); SetCursor(x); event.Skip(); // let wxWidgets continue to process the event, somehow // it stops the native control setting the beam cursor }
void wxIFMFloatingWindowBase::OnSetCursor(wxSetCursorEvent &event) { wxIFMSetCursorEvent evt(event, GetComponentByPos(wxPoint(event.GetX(), event.GetY()))); if( !GetIP()->ProcessPluginEvent(evt) ) event.Skip(); }
void bmx_wxsetcursorevent_setcursor(wxSetCursorEvent & event, MaxCursor * cursor) { event.SetCursor(cursor->Cursor()); }
int bmx_wxsetcursorevent_hascursor(wxSetCursorEvent & event) { return static_cast<int>(event.HasCursor()); }
int bmx_wxsetcursorevent_gety(wxSetCursorEvent & event) { return event.GetY(); }