Hello
I wrote a custom control that inherits from wxListCtrl and I also wrote
a custom handler to add it to a window when I include it in a XRC file:
<object class="My::Own::ListCtrl" name="results">
<pos>45,45</pos>
<size>360,100</size>
</object>
Now it works very fine and I can access control's ID with
Wx::XmlResource::GetXRCID
and assign events to controls like that.
Though when I want to ru methods on this object I would do just like
usually for other controls, simply with the
Wx::Window::FindWindowByName
but sadly it does not work for my custom control I built. I though maybe
I made a mistake in the XRC (Wx::PlXmlResourceHandler) handler but I
checked and it seems everything looks like in the demo (create the
control and SetupWindow and CreateChildren).
So the problem is I can retrieve the ID of the created object but I
can't retreive the object itself to run methods on it.
Any idea gentlemen ?
Thank you and have a great day.
--
Eriam Schaffter
Rue des Lilas 10
1202 Geneve
Phone +41 (22) 534 95 71
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
|