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 }
// 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(); }