From: Eriam S. <er...@er...> - 2006-07-06 09:21:44
|
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=3D"My::Own::ListCtrl" name=3D"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 |