{
// always hide the hint for inner-tabctrl drag
m_mgr.HideHint();
+
+ // if tab moving is not allowed, leave
+ if (!(m_flags & wxAUI_NB_TAB_MOVE))
+ {
+ return;
+ }
wxPoint pt = dest_tabs->ScreenToClient(screen_pt);
wxWindow* dest_location_tab;
return;
}
+
+ // if tab moving is not allowed, leave
+ if (!(m_flags & wxAUI_NB_TAB_SPLIT))
+ {
+ return;
+ }
+
if (dest_tabs)
{
wxRect hint_rect = dest_tabs->GetRect();
m_mgr.HideHint();
-
+ // if tab moving is not allowed, leave
+ if (!(m_flags & wxAUI_NB_TAB_SPLIT))
+ {
+ return;
+ }
+
// 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);
SetWindowStyleFlag(style);
if (!wxAuiNotebook::Create(parent,
- wxID_ANY,
- wxPoint(0,0),
- wxSize(100, 100),
- wxNO_BORDER))
+ wxID_ANY,
+ wxPoint(0,0),
+ wxSize(100, 100),
+ wxAUI_NB_DEFAULT_STYLE | wxNO_BORDER))
{
return false;
}