cursor problem in sash windows corrected

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-02-27 23:55:04 +00:00
parent cfb7687556
commit 666887645f

View File

@ -110,6 +110,9 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event)
wxSashEdgePosition sashHit = SashHitTest(x, y); wxSashEdgePosition sashHit = SashHitTest(x, y);
// reset the cursor
SetCursor(wxCursor());
if (event.LeftDown()) if (event.LeftDown())
{ {
if ( sashHit != wxSASH_NONE ) if ( sashHit != wxSASH_NONE )
@ -146,8 +149,6 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event)
wxScreenDC::EndDrawingOnTop(); wxScreenDC::EndDrawingOnTop();
m_dragMode = wxSASH_DRAG_NONE; m_dragMode = wxSASH_DRAG_NONE;
m_draggingEdge = wxSASH_NONE; m_draggingEdge = wxSASH_NONE;
SetCursor(*wxSTANDARD_CURSOR);
} }
else if (event.LeftUp() && m_dragMode == wxSASH_DRAG_DRAGGING) else if (event.LeftUp() && m_dragMode == wxSASH_DRAG_DRAGGING)
{ {
@ -239,10 +240,6 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event)
SetCursor(*m_sashCursorNS); SetCursor(*m_sashCursorNS);
} }
} }
else
{
SetCursor(*wxSTANDARD_CURSOR);
}
} }
else if ( event.Dragging() && else if ( event.Dragging() &&
((m_dragMode == wxSASH_DRAG_DRAGGING) || (m_dragMode == wxSASH_DRAG_LEFT_DOWN)) ((m_dragMode == wxSASH_DRAG_DRAGGING) || (m_dragMode == wxSASH_DRAG_LEFT_DOWN))