Panel with FlexGridSizer1
Row1 Panel
Row2 Panel
Row3 Panel with FlexGridSizer2
Row1
Row2
Row4 Panel
All rows are growable rows in both FlexGridSizer 1 and 2.
And you dynamically add a row in FlexGridSiezer2.
What do you need to do to make the new row to
be visible.
I tried different approaches but noone seem
to make the row to become visible. The row
seems to be placed under row4 in the flexgridsizer1.
For example I tried:
panel_flexgrid2.sizer.SetSizeHints(panel_flexgrid2)
panel_flexgrid2.Layout()
But this doesnt seem to work I also tried
several other combinations with Fit and
doing Layout on the Sizer.
Panel with FlexGridSizer1
Row1 Panel
Row2 Panel
Row3 Panel with FlexGridSizer2
Row1
Row2
Row4 Panel
All rows are growable rows in both FlexGridSizer 1 and 2.
And you dynamically add a row in FlexGridSiezer2.
What do you need to do to make the new row to be visible.
I tried different approaches but noone seem
to make the row to become visible. The row
seems to be placed under row4 in the flexgridsizer1.
FlexGridSizer1 needs to be made aware that the min size for the panel has changed. You can do it explicitly with SetItemMinSize, but I think using the wxADJUST_MINZIE flag when adding Row3 to FlexGridSizer1 should do it too.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!