Virtualize ProcessDockResult so people can override it to prevent docking
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -444,6 +444,9 @@ protected:
|
|||||||
wxDockUIPartArray& uiparts,
|
wxDockUIPartArray& uiparts,
|
||||||
bool spacer_only = false);
|
bool spacer_only = false);
|
||||||
|
|
||||||
|
virtual bool ProcessDockResult(wxPaneInfo& target,
|
||||||
|
const wxPaneInfo& new_pos);
|
||||||
|
|
||||||
bool DoDrop(wxDockInfoArray& docks,
|
bool DoDrop(wxDockInfoArray& docks,
|
||||||
wxPaneInfoArray& panes,
|
wxPaneInfoArray& panes,
|
||||||
wxPaneInfo& drop,
|
wxPaneInfo& drop,
|
||||||
|
@@ -2063,7 +2063,7 @@ int wxFrameManager::GetDockPixelOffset(wxPaneInfo& test)
|
|||||||
// if a dock operation is allowed, the new dock position is copied into
|
// if a dock operation is allowed, the new dock position is copied into
|
||||||
// the target info. If the operation was allowed, the function returns true.
|
// the target info. If the operation was allowed, the function returns true.
|
||||||
|
|
||||||
static bool ProcessDockResult(wxPaneInfo& target,
|
bool wxFrameManager::ProcessDockResult(wxPaneInfo& target,
|
||||||
const wxPaneInfo& new_pos)
|
const wxPaneInfo& new_pos)
|
||||||
{
|
{
|
||||||
bool allowed = false;
|
bool allowed = false;
|
||||||
|
Reference in New Issue
Block a user