git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42954
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxAuiTabCtrl* dest_tabs = GetTabCtrlFromPoint(client_pt);
if (dest_tabs == src_tabs)
{
wxAuiTabCtrl* dest_tabs = GetTabCtrlFromPoint(client_pt);
if (dest_tabs == src_tabs)
{
+ if (src_tabs)
+ {
+ src_tabs->SetCursor(wxCursor(wxCURSOR_ARROW));
+ }
+
// always hide the hint for inner-tabctrl drag
m_mgr.HideHint();
// always hide the hint for inner-tabctrl drag
m_mgr.HideHint();
+
+ if (src_tabs)
+ {
+ src_tabs->SetCursor(wxCursor(wxCURSOR_SIZING));
+ }
+
+
if (dest_tabs)
{
wxRect hint_rect = dest_tabs->GetRect();
if (dest_tabs)
{
wxRect hint_rect = dest_tabs->GetRect();
+ // set cursor back to an arrow
+ wxAuiTabCtrl* src_tabs = (wxAuiTabCtrl*)evt.GetEventObject();
+ if (src_tabs)
+ {
+ src_tabs->SetCursor(wxCursor(wxCURSOR_ARROW));
+ }
+
// get the mouse position, which will be used to determine the drop point
wxPoint mouse_screen_pt = ::wxGetMousePosition();
wxPoint mouse_client_pt = ScreenToClient(mouse_screen_pt);
// the src tab control is the control that fired this event
// get the mouse position, which will be used to determine the drop point
wxPoint mouse_screen_pt = ::wxGetMousePosition();
wxPoint mouse_client_pt = ScreenToClient(mouse_screen_pt);
// the src tab control is the control that fired this event
- wxAuiTabCtrl* src_tabs = (wxAuiTabCtrl*)evt.GetEventObject();
wxAuiTabCtrl* dest_tabs = NULL;
wxAuiTabCtrl* dest_tabs = NULL;
SetSelection(m_tabs.GetIdxFromWindow(page_info.window));
}
SetSelection(m_tabs.GetIdxFromWindow(page_info.window));
}
wxAuiTabCtrl* wxAuiNotebook::GetTabCtrlFromPoint(const wxPoint& pt)
{
// if we've just removed the last tab from the source
wxAuiTabCtrl* wxAuiNotebook::GetTabCtrlFromPoint(const wxPoint& pt)
{
// if we've just removed the last tab from the source