- Code: Select all
--- manager-base.cpp Wed Dec 14 18:04:54 2005
+++ manager.cpp Sat Jan 07 15:05:40 2006
@@ -376,7 +376,13 @@
m_mgr.Update();
if (pane.min_size.IsFullySpecified())
+ {
+ // because SetSizeHints() calls Fit() too (which sets the window size to its minimum allowed),
+ // we keep the size before calling SetSizeHints() and reset it afterwards...
+ wxSize tmp = GetSize();
GetSizer()->SetSizeHints(this);
+ SetSize(tmp);
+ }
SetTitle(pane.caption);
Kirix Support Forums
Fix for wxAUI-0.9 floating pane size problem
5 posts
• Page 1 of 1
Fix for wxAUI-0.9 floating pane size problem
The floating pane size is ignored (at least with wx-2.6.2). This patch fixes the problem:
- mandrav
- Registered User
- Posts: 6
- Joined: Sat Jan 07, 2006 2:31 pm
- Location: Athens, Greece
Yep, I've run into this issue also (SetSizeHints() calling Fit()). Looks like a good patch. I'll try it out on Monday when I return home.
Best,
Ben
Best,
Ben
- Guest
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
Hello List,
I am really sorry to break in again in the forum, but I am having problems in making the patch working. Lines 377-382 of wxAUI should look like this now
I have modified a little bit the demo (all panes perspective) to have:
But if I float the SettingsPanel it still has an height of 996 pixels, almost my screen height. Am I missing something? I'm on Windows XP, wxWidgets 2.6.2 (downloaded some weeks ago).
Thanks a lot for your help.
Andrea.
I am really sorry to break in again in the forum, but I am having problems in making the patch working. Lines 377-382 of wxAUI should look like this now
- Code: Select all
if (pane.min_size.IsFullySpecified())
{
wxSize tmp = GetSize();
GetSizer()->SetSizeHints(this);
SetSize(tmp);
}
I have modified a little bit the demo (all panes perspective) to have:
- Code: Select all
m_mgr.AddPane(new SettingsPanel(this,this), wxPaneInfo ().
Name ( wxT ( "Resize" ) ).Caption ( wxT ( "Resize" ) ).Left ().
MaxSize ( wxSize(255, 160) ).MinSize ( wxSize(255, 160) ).
BestSize ( wxSize(255, 160) ).
FloatingSize ( wxSize ( 255, 160 ) ).
CloseButton ( false ).Fixed () );
But if I float the SettingsPanel it still has an height of 996 pixels, almost my screen height. Am I missing something? I'm on Windows XP, wxWidgets 2.6.2 (downloaded some weeks ago).
Thanks a lot for your help.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77
http://xoomer.virgilio.it/infinity77
- Infinity77
- Registered User
- Posts: 12
- Joined: Thu Jan 05, 2006 12:57 am
- Location: Milan, Italy
I'm having the same trouble. I've been able to get a floated pane to size properly by setting the pane's dock_proportion = 1 before adding it to the frame manager, but the contents of the pane are still being drawn as if they were in a larger frame (i.e., some of the pane's contents are not drawn because they're outside the frame). Anyone have any ideas what could be going on here?
- Peek
5 posts
· Page 1 of 1
Return to wxAUI Patches & Modifications