I'm practising writing a form in code, to help me better understand what 
is going on.
I'm doing a plain dGridSizer, with left column being labels and the 
right column being dTextBoxes. So naturally I want the right hand column 
to have a proportion of 2 to 1 relative to the labels. This is so easy 
in ClassDesigner.
What are the points I need to check when doing it in code?

grd = dabo.ui.dGridSizer(MaxCols=2, HGap=12, VGap=15)
grd.setColExpand(True, 1, 0)
lbl = dabo.ui.dLabel(self, Caption="Name:")
txtbox = dabo.ui.dTextBox(self)

The grid appears to position itself correctly and in a 2:1 proportion.
The issue is that the TextBoxes are not expanding to fill the space. ie 
column #1 does not expand or is it the text box does not expand to match 
the column.
-- Fraser Burns

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to