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 » Fri Jul 31, 2009 3:40 pm

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
Moderator
Moderator
Posts: 536
Joined: Fri Jan 07, 2005 3:44 pm
Location: Finland
Contact:

Post by vdell » Fri Jul 31, 2009 4:11 pm

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 » Fri Jul 31, 2009 4:52 pm

Thanks, I will try that. If i have any trouble I'll post it here.
if(work == fun)
{
pigsCanFly = true;
}

vdell
Moderator
Moderator
Posts: 536
Joined: Fri Jan 07, 2005 3:44 pm
Location: Finland
Contact:

Post by vdell » Sat Aug 01, 2009 10:59 am

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 » Mon Aug 03, 2009 1:12 pm

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