XRC and wxListCtrl

Hi,

When I define a wxListCtrl (or wxTreeCtrl) within a XRC file I'm not
able to get the proper type with XRCCTRL. The result of a XRCCTRL is
wxControl. ALl other controls return the proper type.

Here is the code snippet I'm using:
  ...
        self.frame = self.res.LoadFrame(None, 'mainFrame')
        self.List = XRCCTRL(self.frame,'tcList')
  ...

And here the appropriate part from the .xrc file (which is to big to
post):
  ...
  <object class="wxFrame" name="mainFrame">
    <title>eTA .:. Enea Test Application</title>
    <object class="wxPanel" name="mainPanel">
      <object class="wxBoxSizer">
        <orient>wxHORIZONTAL</orient>
        <object class="sizeritem">
          <object class="wxListCtrl" name="tcList">
            <size>400,300</size>
          </object>
        </object>
     ...
  </object>

Any help appreciated

Regards
/Rob

Rob Schmersel wrote:

Hi,

When I define a wxListCtrl (or wxTreeCtrl) within a XRC file I'm not
able to get the proper type with XRCCTRL. The result of a XRCCTRL is
wxControl. ALl other controls return the proper type.

This has already been fixed for 2.4.0.7 (Uploading now.)

···

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

Downloaded, tested and Hurrah it works :slight_smile:

Thanks
/Rob

Robin Dunn wrote:

···

Rob Schmersel wrote:
> Hi,
>
> When I define a wxListCtrl (or wxTreeCtrl) within a XRC file I'm not
> able to get the proper type with XRCCTRL. The result of a XRCCTRL is
> wxControl. ALl other controls return the proper type.
>

This has already been fixed for 2.4.0.7 (Uploading now.)

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

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

--
/----------------------------------------------------------\

Rob Schmersel |
System Architect |
                                                         >
Enea data |
Nytorpsvägen 5B | Tel: +46(0)8-50714314 |
Box 232 | Mob: +46(0)709-714314 |
SE-183 23 Täby, Sweden | Fax: +46(0)8-50714040 |

\----------------------------------------------------------/