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.
Kirix Support Forums
Panes that stretch automatically
4 posts
• Page 1 of 1
Re: Panes that stretch automatically
Hello,
I don't see an answer for this question? is this doable?
Thanks
Fernanda
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
Hi there,
You will have to use the more advanced way of adding panes to get the sizes you want.
For instance:
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
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
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
Thanks!
Yes, it worked great!
Thanks!
Thanks!
- feik20
- Registered User
- Posts: 2
- Joined: Mon Nov 20, 2006 5:44 pm
4 posts
· Page 1 of 1
Return to wxAUI Questions, Thoughts & Feedback