FlexGridSizer not expanding its item

Hi,

I'm designing a Dialog using an XRC Editor and have a problem with a
FlexGridSizer not expanding its item properly:
The FlexGridSizer has a single row with 2 items, the one to expand, a
StaticBoxSizer with proportion 1,
and the other one, also a StaticBoxSizer, with proportion 0.
Unfortunately, the first StaticBoxSizer doesn't expand.

Here is a screenshot of the situation:
http://postimage.org/image/59wse2v4v/
http://postimage.org/image/j4v2wjpjz/

Can someone tell me what I'm doing wrong?

This is the corresponding XRC code of the flexgridsizer

                        <object class="sizeritem">
        <option>1</option>
        <flag>wxEXPAND</flag>
        <border>5</border>
        <object class="wxFlexGridSizer">
          <rows>1</rows>
          <cols>2</cols>
          <vgap>0</vgap>
          <hgap>0</hgap>
          <growablecols></growablecols>
          <growablerows></growablerows>
          <object class="sizeritem">
            <option>1</option>
            <flag>wxALL|wxEXPAND</flag>
            <border>5</border>
            <object class="wxStaticBoxSizer">
              <orient>wxVERTICAL</orient>
              <label>Info</label>
              <object class="sizeritem">
                <option>1</option>
                <flag>wxALL|wxEXPAND</flag>
                <border>5</border>
                <object class="wxStaticText" name="m_staticText2">
                  <label>MyLabel</label>
                  <wrap>-1</wrap>
                </object>
              </object>
            </object>
          </object>
          <object class="sizeritem">
            <option>0</option>
            <flag>wxALL|wxEXPAND</flag>
            <border>5</border>
            <object class="wxStaticBoxSizer">
              <orient>wxVERTICAL</orient>
              <label>Arguments</label>
              <object class="sizeritem">
                <option>0</option>
                <flag>wxALL</flag>
                <border>5</border>
                <object class="wxCheckListBox" name="m_checkList1">
                  <size>150,-1</size>
                  <content />
                </object>
              </object>
            </object>
          </object>
        </object>
      </object>

In flex grid sizers the proportion is not used the same as in box sizers, and you need to tell it that the row is growable instead. Using the API it would be sizer.AddGrowableRow(0), in XRC it is set using the <growablerows> tag.

···

On 4/12/12 7:43 AM, Patrick Ruoff wrote:

Hi,

I'm designing a Dialog using an XRC Editor and have a problem with a
FlexGridSizer not expanding its item properly:
The FlexGridSizer has a single row with 2 items, the one to expand, a
StaticBoxSizer with proportion 1,
and the other one, also a StaticBoxSizer, with proportion 0.
Unfortunately, the first StaticBoxSizer doesn't expand.

Here is a screenshot of the situation:
http://postimage.org/image/59wse2v4v/
http://postimage.org/image/j4v2wjpjz/

Can someone tell me what I'm doing wrong?

--
Robin Dunn
Software Craftsman

BTW, I only approved one of your messages since they appeared to be the same. If that's not the case then feel free to resend your other questions now that your email address has been approved to send mail to the list.

···

On 4/12/12 7:43 AM, Patrick Ruoff wrote:

Hi,

--
Robin Dunn
Software Craftsman

Thank you for your fast reply!
I probably should use a box-sizer anyway, if I only have a single row.
(and yes, the other messages were the same, I somehow did not realize
that the list is moderated and thought the first one had not come through)

···

On Thursday, April 12, 2012 5:36:36 PM UTC+2, Robin Dunn wrote:

On 4/12/12 7:43 AM, Patrick Ruoff wrote:

Hi,

BTW, I only approved one of your messages since they appeared to be the
same. If that’s not the case then feel free to resend your other
questions now that your email address has been approved to send mail to
the list.


Robin Dunn
Software Craftsman
http://wxPython.org

On Thursday, April 12, 2012 5:36:36 PM UTC+2, Robin Dunn wrote:

On 4/12/12 7:43 AM, Patrick Ruoff wrote:

Hi,

BTW, I only approved one of your messages since they appeared to be the
same. If that’s not the case then feel free to resend your other
questions now that your email address has been approved to send mail to
the list.


Robin Dunn
Software Craftsman
http://wxPython.org

The first posts from new addresses are moderated to help filter out the bots and jerks.

···

On 4/12/12 9:16 AM, Patrick Ruoff wrote:

Thank you for your fast reply!
I probably should use a box-sizer anyway, if I only have a single row.
(and yes, the other messages were the same, I somehow did not realize
that the list is moderated and thought the first one had not come through)

--
Robin Dunn
Software Craftsman