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:
parent
5d9dedfe38
commit
0d02dd54a0
@ -444,6 +444,9 @@ protected:
|
||||
wxDockUIPartArray& uiparts,
|
||||
bool spacer_only = false);
|
||||
|
||||
virtual bool ProcessDockResult(wxPaneInfo& target,
|
||||
const wxPaneInfo& new_pos);
|
||||
|
||||
bool DoDrop(wxDockInfoArray& docks,
|
||||
wxPaneInfoArray& panes,
|
||||
wxPaneInfo& drop,
|
||||
|
@ -2063,7 +2063,7 @@ int wxFrameManager::GetDockPixelOffset(wxPaneInfo& test)
|
||||
// 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.
|
||||
|
||||
static bool ProcessDockResult(wxPaneInfo& target,
|
||||
bool wxFrameManager::ProcessDockResult(wxPaneInfo& target,
|
||||
const wxPaneInfo& new_pos)
|
||||
{
|
||||
bool allowed = false;
|
||||
|
Loading…
Reference in New Issue
Block a user