<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Cees De Groot wrote:
<blockquote cite="mid330b6fd605072710594efb0f1c@mail.gmail.com"
 type="cite">
  <pre wrap="">On 7/27/05, Cees De Groot <a class="moz-txt-link-rfc2396E" href="mailto:cdegroot@gmail.com">&lt;cdegroot@gmail.com&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I was wondering (and that'll be my next try) - what if I just create
the component as a plain list control, and then simply change the
class of the instance after loading... 
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Well, that's off as well - Primitive Failed.
  </pre>
</blockquote>
A simpler approach to this whole situation is to use
WxXmlSubclassFactory instead of a<br>
custom resource handler. What this basically does is give you a
callback instantiate the subclass.<br>
There's currently a bug in the callback setup, so add the following
method:<br>
<br>
!WxXmlSubclassFactory methodsFor: 'generated' stamp: 'rtg 7/27/2005
15:50'!<br>
setCallbackFlags<br>
&nbsp;&nbsp;&nbsp; self setCallbackFlags: 1! !<br>
<br>
Rather than adding a custom resource handler, use<br>
&nbsp;&nbsp;&nbsp; res addSubclassFactory: WxXmlSubclassFactory new.<br>
<br>
If this works, I don't see any need for custom resource handlers unless
you want to use<br>
special attributes in the XRC file.<br>
</body>
</html>