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>
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!
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