Kirix Support Forums

[SOLVED]Relative size of panes (e.g. on right)

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

[SOLVED]Relative size of panes (e.g. on right)

Postby gnschmidt on Thu Oct 12, 2006 7:56 am

I have three panes on the right-hand side of my managed frame. Is there a way of specifying the relative size? Currently, each occupies exactly a third of the available space. What I would like to do is make the first pane significantly smaller than the second and third ones.

Is this something I should achieve by fetching the pane info and setting BestSize/MinSize/MaxSize, or is there another way?

Thanks!
Last edited by gnschmidt on Fri Oct 13, 2006 8:40 am, edited 1 time in total.
gnschmidt
Registered User
 
Posts: 20
Joined: Sat Sep 30, 2006 2:59 am

Postby Ben on Fri Oct 13, 2006 5:53 am

Hi,

Yes. You need to use the dock_proportion member of wxPaneInfo. Currently, there is no accessor function for this because I'm not sure what we're going to do with this.

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

Postby gnschmidt on Fri Oct 13, 2006 7:51 am

Thank you very much, I'll tweak dock_proportion and see how it goes.
gnschmidt
Registered User
 
Posts: 20
Joined: Sat Sep 30, 2006 2:59 am

Postby gnschmidt on Fri Oct 13, 2006 8:40 am

dock_proportion works perfectly! Thank you very much.
gnschmidt
Registered User
 
Posts: 20
Joined: Sat Sep 30, 2006 2:59 am

Return to wxAUI Questions, Thoughts & Feedback