Hi,
In the framemanager.cpp,
the max dock's size cannot be more than 1/3 of the frame size.
=============================================
// new dock's size may not be more than 1/3 of the frame size
if (dock.IsHorizontal())
size = wxMin(size, cli_size.y/3);
else
size = wxMin(size, cli_size.x/3);
=============================================
If I want to change the limit, I must modify the source code.
Could you use a variable and Get/Set methods for the value?
I think this may be more comfortable for some users like me.
Thanks.
Kirix Support Forums
About the max dock's size
3 posts
• Page 1 of 1
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
Wauwai,
Thanks for your suggestion! We added two functions to wxAuiManager that will allow you to access the initial dock's size:
void SetDockSizeConstraint(double width_pct, double height_pct);
void GetDockSizeConstraint(double* width_pct, double* height_pct) const;
These are available in the wxWidgets CVS.
Aaron
Thanks for your suggestion! We added two functions to wxAuiManager that will allow you to access the initial dock's size:
void SetDockSizeConstraint(double width_pct, double height_pct);
void GetDockSizeConstraint(double* width_pct, double* height_pct) const;
These are available in the wxWidgets CVS.
Aaron
-
Aaron - Kirix Support Team
- Posts: 120
- Joined: Fri Dec 16, 2005 3:01 pm
3 posts
· Page 1 of 1
Return to wxAUI Questions, Thoughts & Feedback