don't draw resize sash if it's dragged outside of managed frame
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
cd67553cf4
commit
36adcfc913
@ -4376,12 +4376,22 @@ void wxAuiManager::OnMotion(wxMouseEvent& event)
|
||||
wxScreenDC dc;
|
||||
|
||||
if (!m_action_hintrect.IsEmpty())
|
||||
{
|
||||
// remove old resize hint
|
||||
DrawResizeHint(dc, m_action_hintrect);
|
||||
m_action_hintrect = wxRect();
|
||||
}
|
||||
|
||||
// draw new resize hint, if it's inside the managed frame
|
||||
wxRect frame_screen_rect = m_frame->GetScreenRect();
|
||||
if (frame_screen_rect.Contains(rect))
|
||||
{
|
||||
DrawResizeHint(dc, rect);
|
||||
m_action_hintrect = rect;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (m_action == actionClickCaption)
|
||||
{
|
||||
int drag_x_threshold = wxSystemSettings::GetMetric(wxSYS_DRAG_X);
|
||||
|
Loading…
Reference in New Issue
Block a user