Kirix Support Forums

About the max dock's size

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

About the max dock's size

Postby wauwai on Tue Aug 01, 2006 9:43 pm

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.
wauwai
Registered User
 
Posts: 1
Joined: Tue Aug 01, 2006 9:24 pm

Postby Ben on Tue Aug 01, 2006 11:51 pm

Hi,

Sounds like a great idea. :-)

Ben
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Postby Aaron on Tue Nov 21, 2006 12:45 pm

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
User avatar
Aaron
Kirix Support Team
 
Posts: 120
Joined: Fri Dec 16, 2005 3:01 pm

Return to wxAUI Questions, Thoughts & Feedback