Esempio n. 1
0
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);
}
Esempio n. 2
0
// 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
}
Esempio n. 4
0
void wxIFMFloatingWindowBase::OnSetCursor(wxSetCursorEvent &event)
{
    wxIFMSetCursorEvent evt(event, GetComponentByPos(wxPoint(event.GetX(), event.GetY())));
    if( !GetIP()->ProcessPluginEvent(evt) )
        event.Skip();
}
Esempio n. 5
0
void bmx_wxsetcursorevent_setcursor(wxSetCursorEvent & event, MaxCursor * cursor) {
	event.SetCursor(cursor->Cursor());
}
Esempio n. 6
0
int bmx_wxsetcursorevent_hascursor(wxSetCursorEvent & event) {
	return static_cast<int>(event.HasCursor());
}
Esempio n. 7
0
int bmx_wxsetcursorevent_gety(wxSetCursorEvent & event) {
	return event.GetY();
}