Kirix Support Forums

Panes that stretch automatically

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

Panes that stretch automatically

Postby claus on Wed Aug 30, 2006 5:16 pm

Hi,

first of all wxAUI is great! Thank you for that!

One question:
When im adding a pane it stretches in one direction only.
E.g. a pane that is added to the left with
frameManager.AddPane(window, wxLEFT, wxT("Caption"));
is streched in vertical direction but uses only around 100 pixels in horizontal direction.

| ---------------------------|
|XXXX
|XXXX
|XXXX
| ---------------------------|

Of course, it is possible to set a MinSize. However, the best size is dependent on the frame size.
Is it possible to have a stretchable flag instead of a MinSize or to have stretch-proportions when using more than one panes?

Or can this done by catching e.g. OnSize events?

wxCenter stretches but cannot be undocked and has no caption.

Thank you.
claus
Registered User
 
Posts: 1
Joined: Wed Aug 30, 2006 5:05 pm

Re: Panes that stretch automatically

Postby feik20 on Mon Nov 20, 2006 5:48 pm

Hello,

I don't see an answer for this question? is this doable?

Thanks

Fernanda
feik20
Registered User
 
Posts: 2
Joined: Mon Nov 20, 2006 5:44 pm

Postby Ben on Tue Nov 21, 2006 2:52 am

Hi there,

You will have to use the more advanced way of adding panes to get the sizes you want.

For instance:


Code: Select all
    m_mgr.AddPane(wnd, wxAuiPaneInfo().
                  Name(wxT("test1")).
                  Caption(wxT("Pane Caption")).
                  Left().
                  BestSize(500,100));


In this case, your pane should dock left with a width of 500. Let me know if it worked for you.

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

Thanks!

Postby feik20 on Sat Dec 02, 2006 9:02 pm

Yes, it worked great!

Thanks!
feik20
Registered User
 
Posts: 2
Joined: Mon Nov 20, 2006 5:44 pm

Return to wxAUI Questions, Thoughts & Feedback