wxFlexGridSizer proportional resize of 2 fields

Hello,group!
How can i have 2 text fields resizing proportionally in
horizontal direction? (1 field - 20% and second field - 80 percent)
Please ,see attached XRC file.
Thanks in advance.

main.xrc (1.72 KB)

···

--
                     mailto:igor@tyumbit.ru

Igor Prischepoff wrote:

Hello,group!
How can i have 2 text fields resizing proportionally in
horizontal direction? (1 field - 20% and second field - 80 percent)

The wxFlexGridSizer doesn't support proportional growth of the growable rows/cols. One way you could do something like it is to set the initial size of the items to be in the proportion you want, don't set any growable columns, and then the sizer should start out with the sizes you want.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!