logo       

Wx::XmlResource XRC and Wx::Window::FindWindowByName: msg#00010

Subject: Wx::XmlResource XRC and Wx::Window::FindWindowByName
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
web.pylons.gene...    hurd.l4/2002-10...    kernel.commits....    user-groups.lin...    yellowdog.gener...    java.drools.use...    security.openva...    package-managem...    linux.debian.us...    qnx.openqnx.dev...    genealogy.gramp...    file-systems.if...    voip.wengophone...    tex.context/200...    ietf.smime/2003...    audio.csound.de...    culture.region....    xfree86.devel/2...    mobile.kannel.u...    distributed.con...    education.engli...    org.user-groups...    bug-tracking.gn...    recreation.bicy...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe