VC++ project file updates; minor sashwindow/splitterwindow cursor mods

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-02-08 19:18:43 +00:00
parent 3e0b743f1d
commit 9f334beabb
5 changed files with 79 additions and 111 deletions

View File

@@ -120,10 +120,10 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event)
if (event.LeftDown())
{
CaptureMouse();
if ( sashHit != wxSASH_NONE )
{
CaptureMouse();
// Required for X to specify that
// that we wish to draw on top of all windows
// - and we optimise by specifying the area
@@ -145,6 +145,15 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event)
m_draggingEdge = sashHit;
m_firstX = x;
m_firstY = y;
if ( (sashHit == wxSASH_LEFT) || (sashHit == wxSASH_RIGHT) )
{
SetCursor(*m_sashCursorWE);
}
else
{
SetCursor(*m_sashCursorNS);
}
}
}
else if ( event.LeftUp() && m_dragMode == wxSASH_DRAG_LEFT_DOWN )
@@ -277,6 +286,10 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event)
event.SetDragRect(dragRect);
GetEventHandler()->ProcessEvent(event);
}
else if ( event.LeftUp() )
{
ReleaseMouse();
}
else if (event.Moving() && !event.Dragging())
{
// Just change the cursor if required