SetClientSize(size);
}
-
+
if (pane.IsFixed())
{
SetWindowStyleFlag(GetWindowStyleFlag() & ~wxRESIZE_BORDER);
}
-void wxAuiFloatingFrame::OnSize(wxSizeEvent& event)
+void wxAuiFloatingFrame::OnSize(wxSizeEvent& WXUNUSED(event))
{
if (m_owner_mgr)
{
- m_owner_mgr->OnFloatingPaneResized(m_pane_window, event.GetSize());
+ m_owner_mgr->OnFloatingPaneResized(m_pane_window, GetRect());
}
}
m_last3_rect = m_last2_rect;
m_last2_rect = m_last_rect;
m_last_rect = win_rect;
+
+ // However still update the internally stored position to avoid
+ // snapping back to the old one later.
+ if (m_owner_mgr)
+ {
+ m_owner_mgr->GetPane(m_pane_window).
+ floating_pos = win_rect.GetPosition();
+ }
+
return;
}
// functionality to wxWidgets itself)
bool wxAuiFloatingFrame::isMouseDown()
{
- return wxGetMouseState().LeftDown();
+ return wxGetMouseState().LeftIsDown();
}