AuiPane Initialize as Floating

Hi Cody,

···

On 8/6/07, Cody Precord wrote:

Here is the full list of options that I set for the panel.

wx.aui.AuiPaneInfo().Name("MyPane").Caption("MyPane").Float
().CloseButton(True).MaximizeButton(False).BestSize(wx.Size(215, 350)))

Are you sure you are calling self.mgr.Update() after adding you pane
to the manager? Otherwise I have no idea :smiley:

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

That it does,

I have some other code doing management for different saved perspectives that must be interfering in some way. At least I know where the problem is now.

thanks,
cody

···

On Aug 6, 2007, at 5:04 PM, Robin Dunn wrote:

Cody Precord wrote:

Yes, I do call mgr.Update() directly after adding the PaneInfo with AddPane, and directly after any Show/Hide.
I have decided to move a different direction with this as the panel didn't fit the layout very well when docked anyway. It would however be good to determine how to get this to work for future reference.
Later this week I will try cross testing on Windows. If it works on windows I will probably file a bug against wxMac.

This change in the demo works fine on wxMac:

diff -r 63dd84492d2c wxPython/demo/AUI_DockingWindowMgr.py
--- a/wxPython/demo/AUI_DockingWindowMgr.py Mon Aug 06 14:09:43 2007 -0700
+++ b/wxPython/demo/AUI_DockingWindowMgr.py Mon Aug 06 14:59:25 2007 -0700
@@ -249,6 +249,7 @@ class PyAUIFrame(wx.Frame):

         self._mgr.AddPane(self.CreateTreeCtrl(), wx.aui.AuiPaneInfo().
                           Name("test8").Caption("Tree Pane").
+ Float().
Left().Layer(1).Position(1).CloseButton(True).MaximizeButton(True))

         self._mgr.AddPane(self.CreateSizeReportCtrl(), wx.aui.AuiPaneInfo().

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org