Hello,
This one is driving me crazy... I couldn't find a way to stop users
from messing with a wx.aui-managed wx.Frame.
Please consider the following frame:
···
+-------------+
wx.ToolBar |
+-------------+
>
wx.Panel |
>
+-------------+
wx.ListCtrl |
>
+-------------+
The controls are added to the manager as follows:
self._mgr.AddPane(panel, wx.aui.AuiPaneInfo().
Name("Panel").
MinSize((100, 100)).BestSize((100, 100)).
CenterPane())
self._mgr.AddPane(listctrl, wx.aui.AuiPaneInfo().
Name("List").Caption("List").
MinSize((100, 100)).BestSize((100, 100)).
Bottom().Layer(1).Position(0).CloseButton(True))
self._mgr.AddPane(self.toolbar, wx.aui.AuiPaneInfo().
Name("tb").Caption("Toolbar").
ToolbarPane().Top().
LeftDockable(False).RightDockable(False))
Now for the mess: if the user drags the sash that separates the panel
and the listctrl upwards, the panel gets hidden (the listctrl takes
all the frame area) and worst: it's impossible to find it again.
No luck trying to set a MinSize for the panel (doesn't seem to work at
all for the panel; as for the listctrl it works ok) neither using
Top() instead of CenterPane().
Am I missing something obvious? Is that a bug? Is there a workaround?
Thanks in advance.
-- tacao
No bits were harmed during the making of this e-mail.