Hi,
I'm searching for a way to place my windows inside a wxBoxSizer.
Right now, I have a BoxSizer and I'm trying to put a ComboBox and a ScrolledWindow side by side. But it seems that the sizer does not allow it, instead he put the ScrolledWindow under the ComboBox.
Cheers.
Move window inside a Sizer Topic is solved
-
- In need of some credit
- Posts: 7
- Joined: Tue Jun 22, 2010 7:52 am
The is a parameter when you create the wxBoxSizer :
from doc :
from doc :
wxBoxSizer::wxBoxSizer
wxBoxSizer(int orient)
Constructor for a wxBoxSizer. orient may be either of wxVERTICAL or wxHORIZONTAL for creating either a column sizer or a row sizer.
Jérémie
-
- In need of some credit
- Posts: 7
- Joined: Tue Jun 22, 2010 7:52 am
Ok, what you want is probably a wxFlexGridSizer
I suggest you to try the sizer sample provided with wxWidgets to see all available sizers, and take the one you need.
[edit] : you can also have a look here
I suggest you to try the sizer sample provided with wxWidgets to see all available sizers, and take the one you need.
[edit] : you can also have a look here
Jérémie
-
- In need of some credit
- Posts: 7
- Joined: Tue Jun 22, 2010 7:52 am