What Sizers should I use? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Estien77
Knows some wx things
Knows some wx things
Posts: 31
Joined: Tue Jan 13, 2009 8:38 pm
Location: Canada, eh?

What Sizers should I use?

Post by Estien77 »

Here is a sample of what I am looking for. There will not be a border, the border is only there to show the actual layout.
if(work == fun)
{
pigsCanFly = true;
}
vdell
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 536
Joined: Fri Jan 07, 2005 3:44 pm
Location: Finland
Contact:

Post by vdell »

Try wxFlexGridSizer
Visual C++ 9.0 / Windows XP Pro SP3 / wxWidgets 2.9.0 (SVN) | Colligere
Estien77
Knows some wx things
Knows some wx things
Posts: 31
Joined: Tue Jan 13, 2009 8:38 pm
Location: Canada, eh?

Post by Estien77 »

Thanks, I will try that. If i have any trouble I'll post it here.
if(work == fun)
{
pigsCanFly = true;
}
vdell
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 536
Joined: Fri Jan 07, 2005 3:44 pm
Location: Finland
Contact:

Post by vdell »

Estien77 wrote:Thanks, I will try that. If i have any trouble I'll post it here.
I don't know if you're already using a resource editor, but it's a lot easier to try different sizer behaviors with an app like DialogBlocks, instead of manually coding.

HTH
Visual C++ 9.0 / Windows XP Pro SP3 / wxWidgets 2.9.0 (SVN) | Colligere
Estien77
Knows some wx things
Knows some wx things
Posts: 31
Joined: Tue Jan 13, 2009 8:38 pm
Location: Canada, eh?

Post by Estien77 »

I like to code things manually so that I get to understand how things work. Anyway, I figured out how it works, so thank you.
if(work == fun)
{
pigsCanFly = true;
}
Post Reply