RowColSizer problem

Hi,
  I can't make a control in a RowColSizer resize only horizontally.
  With a wxBoxSizer(wxHORIZONTAL) this would be sizer.Add(ctrl, 1) but I
can't do that with the RowColSizer, I can only make them grow to fill
the cell.
  Is this a limitation of the sizer or am I doing something wrong?

TIA,
  Javier

Javier Ruere wrote:

Hi,
  I can't make a control in a RowColSizer resize only horizontally.
  With a wxBoxSizer(wxHORIZONTAL) this would be sizer.Add(ctrl, 1) but I
can't do that with the RowColSizer, I can only make them grow to fill
the cell.
  Is this a limitation of the sizer or am I doing something wrong?

My original code can't handle this.

Niki Spahiev

Javier Ruere wrote:

Hi,
  I can't make a control in a RowColSizer resize only horizontally.
  With a wxBoxSizer(wxHORIZONTAL) this would be sizer.Add(ctrl, 1) but I
can't do that with the RowColSizer, I can only make them grow to fill
the cell.
  Is this a limitation of the sizer or am I doing something wrong?

The RowColSizer doesn't use the option parameter so it either fills the cell or can be aligned within the cell depending on the flags passed.

You can probably derive a class and override SetItemBounds and do something like this yourself...

···

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

I worked around it using boxSizers. I'll just leave it like this.

Thanks,
  Javier

Robin Dunn wrote:

···

Javier Ruere wrote:

Hi,
    I can't make a control in a RowColSizer resize only horizontally.
    With a wxBoxSizer(wxHORIZONTAL) this would be sizer.Add(ctrl, 1)
but I
can't do that with the RowColSizer, I can only make them grow to fill
the cell.
    Is this a limitation of the sizer or am I doing something wrong?

The RowColSizer doesn't use the option parameter so it either fills the
cell or can be aligned within the cell depending on the flags passed.

You can probably derive a class and override SetItemBounds and do
something like this yourself...