sizers - a row thats spans over multiple columns? 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
Vexator
I live to help wx-kind
I live to help wx-kind
Posts: 187
Joined: Sun Jan 30, 2005 2:50 pm
Location: Heidelberg, Germany

sizers - a row thats spans over multiple columns?

Post by Vexator » Mon Jun 05, 2006 9:30 pm

can i do sth like that with wx sizers? so that i have e.g. a flexgridsizer with a caption in the first row and then three spinctrl's in the 2nd one, so that the first row spans over the three columns in the 2nd row?

Image
Last edited by Vexator on Tue Jun 06, 2006 1:46 pm, edited 3 times in total.
Windows 7 Pro
Visual Studio 2010
wxWidgets 2.9.3

protocol
Moderator
Moderator
Posts: 680
Joined: Wed Jan 18, 2006 6:13 pm
Location: Dallas, TX
Contact:

Post by protocol » Mon Jun 05, 2006 9:47 pm

Yeah, but you would have to embed use two embedded wxSizers.
/* UIKit && wxWidgets 2.8 && Cocoa && .Net */
QuRegExmm
wxPCRE & ObjPCRE - Regex It!

micros
Super wx Problem Solver
Super wx Problem Solver
Posts: 317
Joined: Sat Mar 18, 2006 10:41 am
Location: Ustek, Bohemia

Post by micros » Mon Jun 05, 2006 9:50 pm

You're probably looking for wxGridBagSizer. However, I'm still unsure whether I like this class or not. You can achieve the same result with two wxBoxSizers, one wxVERTICAL and one wxHORIZONTAL (inside the first one); without the overhead of wxGridBagSizer. So far, I've always gone with wxBoxSizer in these scenarios.

Post Reply