El 25/11/13 11:20, Paul McNett escribió:
On 11/24/13 11:36 AM, Ed Leafe wrote:
On Nov 24, 2013, at 12:56 PM, Ricardo Aráoz <ricar...@gmail.com> wrote:

Hi, having some trouble setting up a grid sizer. Just can't find what I'm doing 
wrong.
I've simplified the thing down to a form with 3 rows. First and second row are 
text boxes while the third row has an edit box. I want the first two rows to 
keep their original sizes whilst the third should grow in both dimensions.
That doesn't sound possible. The expansion properties apply to the entire 
column or row, not to individual cells.
I've found hierarchical box sizers to be more useful for things like this. In 
this
case you'd have an outer vertical sizer, a horizontal sizer for each row, and
vertical sizers for each cell. For the last cell, do the 
sizer.append1x(edtBox), but
for the first two, just do sizer.append(ctrl). For the horizontal row sizer, do
sizer.append1x().



Thanks, yes I've tried that.
But how do you align the columns in this design? I mean, the first column would be labels of different sizes. Do you find out a maximum width and then set all the widths to that value? But then what happens with internationalization, or different font sizes across platforms? I mean, it seems that then you would be loosing the flexibility of sizers. Or is there some other smart way to deal with this I haven't thought about?

_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/52938225.8040...@gmail.com

Reply via email to