added DockFixed() pane option; doc updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -127,6 +127,13 @@ Direction() determines the direction of the docked pane. It is functionally the
|
|||||||
|
|
||||||
\func{wxAuiPaneInfo\&}{Dock}{\void}
|
\func{wxAuiPaneInfo\&}{Dock}{\void}
|
||||||
|
|
||||||
|
Dock() indicates that a pane should be docked. It is the opposite of Float().
|
||||||
|
|
||||||
|
\membersection{wxAuiPaneInfo::DockFixed}\label{wxauipaneinfodockfixed}
|
||||||
|
|
||||||
|
\func{wxAuiPaneInfo\&}{DockFixed}{\param{bool }{b = true}}
|
||||||
|
|
||||||
|
DockFixed() causes the containing dock to have no resize sash. This is useful for creating panes that span the entire width or height of a dock, but should not be resizable in the other direction.
|
||||||
|
|
||||||
\membersection{wxAuiPaneInfo::Dockable}\label{wxauipaneinfodockable}
|
\membersection{wxAuiPaneInfo::Dockable}\label{wxauipaneinfodockable}
|
||||||
|
|
||||||
@@ -144,7 +151,7 @@ Fixed() forces a pane to be fixed size so that it cannot be resized. After calli
|
|||||||
|
|
||||||
\func{wxAuiPaneInfo\&}{Float}{\void}
|
\func{wxAuiPaneInfo\&}{Float}{\void}
|
||||||
|
|
||||||
Float() indicates that a pane should be floated.
|
Float() indicates that a pane should be floated. It is the opposite of Dock().
|
||||||
|
|
||||||
\membersection{wxAuiPaneInfo::Floatable}\label{wxauipaneinfofloatable}
|
\membersection{wxAuiPaneInfo::Floatable}\label{wxauipaneinfofloatable}
|
||||||
|
|
||||||
|
@@ -298,6 +298,7 @@ public:
|
|||||||
wxAuiPaneInfo& RightDockable(bool b = true) { return SetFlag(optionRightDockable, b); }
|
wxAuiPaneInfo& RightDockable(bool b = true) { return SetFlag(optionRightDockable, b); }
|
||||||
wxAuiPaneInfo& Floatable(bool b = true) { return SetFlag(optionFloatable, b); }
|
wxAuiPaneInfo& Floatable(bool b = true) { return SetFlag(optionFloatable, b); }
|
||||||
wxAuiPaneInfo& Movable(bool b = true) { return SetFlag(optionMovable, b); }
|
wxAuiPaneInfo& Movable(bool b = true) { return SetFlag(optionMovable, b); }
|
||||||
|
wxAuiPaneInfo& DockFixed(bool b = true) { return SetFlag(optionDockFixed, b); }
|
||||||
|
|
||||||
wxAuiPaneInfo& Dockable(bool b = true)
|
wxAuiPaneInfo& Dockable(bool b = true)
|
||||||
{
|
{
|
||||||
@@ -375,6 +376,7 @@ public:
|
|||||||
optionActive = 1 << 14,
|
optionActive = 1 << 14,
|
||||||
optionGripperTop = 1 << 15,
|
optionGripperTop = 1 << 15,
|
||||||
optionMaximized = 1 << 16,
|
optionMaximized = 1 << 16,
|
||||||
|
optionDockFixed = 1 << 17,
|
||||||
|
|
||||||
buttonClose = 1 << 21,
|
buttonClose = 1 << 21,
|
||||||
buttonMaximize = 1 << 22,
|
buttonMaximize = 1 << 22,
|
||||||
|
@@ -2089,6 +2089,8 @@ wxSizer* wxAuiManager::LayoutAll(wxAuiPaneInfoArray& panes,
|
|||||||
dock.fixed = false;
|
dock.fixed = false;
|
||||||
if (!pane.IsToolbar())
|
if (!pane.IsToolbar())
|
||||||
dock.toolbar = false;
|
dock.toolbar = false;
|
||||||
|
if (pane.HasFlag(wxAuiPaneInfo::optionDockFixed))
|
||||||
|
dock.fixed = true;
|
||||||
if (pane.state & wxAuiPaneInfo::actionPane)
|
if (pane.state & wxAuiPaneInfo::actionPane)
|
||||||
action_pane_marked = true;
|
action_pane_marked = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user