Kirix Support Forums

Can you please fix the size issue?

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

Can you please fix the size issue?

Postby Cedric on Mon Sep 06, 2010 6:32 pm

Hi,

The size issue is from far the biggest issue when using wxAuiManager. The panes don't respect the max size in particular. And when you want to do the layout of a UI, it's important to be able to define sizes.

It would be great to at least get the following patch or a better one integrated:
viewtopic.php?f=16&t=610&p=1671

here's a specific problem which can be reproduced in the auidemo.wx.lua provided with wxlua:

Code: Select all
self.m_mgr:AddPane(self:CreateSizeReportCtrl(), wxaui.wxAuiPaneInfo():
                  Name(wxT("test5")):Caption(wxT("Properties")):
                  MinSize(wx.wxSize(200,200)):
                  Right():Row(1):Layer(1):
                  CloseButton(true):MaximizeButton(true));
                 
   self.m_mgr:AddPane(self:CreateSizeReportCtrl(), wxaui.wxAuiPaneInfo():
                  Name(wxT("test6")):Caption(wxT("Layers")):
                  MinSize(wx.wxSize(200,200)):MaxSize(wx.wxSize(200,200)):
                  Right():Row(1):Layer(1):
                  CloseButton(true));

    self.m_mgr:AddPane(self:CreateTreeCtrl(), wxaui.wxAuiPaneInfo():
                  Name(wxT("test7")):Caption(wxT("Outliner")):
                  Left():Layer(1):
                  CloseButton(true):MaximizeButton(true));

    self.m_mgr:AddPane(self:CreateSizeReportCtrl(), wxaui.wxAuiPaneInfo():
                  Name(wxT("test9")):Caption(wxT("Library")):
                  BestSize(wx.wxSize(200,100)):MinSize(wx.wxSize(200,100)):
                  Bottom():
                  CloseButton(true):MaximizeButton(true));

    self.m_mgr:AddPane(SettingsPanel:create(self,self).this, wxaui.wxAuiPaneInfo():
                  Name(wxT("settings")):Caption(wxT("Dock Manager Settings")):
                  Dockable(false):Float():Hide());


The section containing test5 and test6 ends up being 200x800 in my specific application
test5 ends up being 200x400, and so does test6.
while I was expecting test6 to be 200x200 and test5 to be 200x600.

thanks,
Cedric.
Cedric
Registered User
 
Posts: 1
Joined: Mon Sep 06, 2010 6:20 pm

Return to wxAUI Questions, Thoughts & Feedback