-// DrawHintRect() draws a drop hint rectangle. First calls DoDrop() to
-// determine the exact position the pane would be at were if dropped. If
-// the pame would indeed become docked at the specified drop point,
-// DrawHintRect() then calls ShowHint() to indicate this drop rectangle.
-// "pane_window" is the window pointer of the pane being dragged, pt is
-// the mouse position, in client coordinates
-void wxFrameManager::DrawHintRect(wxWindow* pane_window,
- const wxPoint& pt,
- const wxPoint& offset)
+void wxAuiManager::StartPaneDrag(wxWindow* pane_window,
+ const wxPoint& offset)
+{
+ wxAuiPaneInfo& pane = GetPane(pane_window);
+ if (!pane.IsOk())
+ return;
+
+ if (pane.IsToolbar())
+ {
+ m_action = actionDragToolbarPane;
+ }
+ else
+ {
+ m_action = actionDragFloatingPane;
+ }
+
+ m_action_window = pane_window;
+ m_action_offset = offset;
+ m_frame->CaptureMouse();
+}
+
+
+// CalculateHintRect() calculates the drop hint rectangle. The method
+// first calls DoDrop() to determine the exact position the pane would
+// be at were if dropped. If the pane would indeed become docked at the
+// specified drop point, the the rectangle hint will be returned in
+// screen coordinates. Otherwise, an empty rectangle is returned.
+// |pane_window| is the window pointer of the pane being dragged, |pt| is
+// the mouse position, in client coordinates. |offset| describes the offset
+// that the mouse is from the upper-left corner of the item being dragged
+
+wxRect wxAuiManager::CalculateHintRect(wxWindow* pane_window,
+ const wxPoint& pt,
+ const wxPoint& offset)