From: Troels on 10 Nov 2009 07:07 Hi I have this xrc object working cpp: class MyCaption : public wxStaticText {}; xrc: <object class="wxStaticText" name="caption" subclass="MyCaption"> </object> But, if I change the base class to wxControl, xrc fails to instantiate the class. cpp: class MyCaption : public wxControl {}; xrc: <object class="wxControl" name="caption" subclass="MyCaption"> </object> Apparantly xrc doesn't like wxControl as base class or?? Thanks Troels
From: Vadim Zeitlin on 11 Nov 2009 09:55 On 2009-11-10, Troels <troels(a)knakkergaard.dk> wrote: > I have this xrc object working > > cpp: class MyCaption : public wxStaticText {}; > xrc: <object class="wxStaticText" name="caption" subclass="MyCaption"> ></object> > > But, if I change the base class to wxControl, xrc fails to instantiate > the class. > > cpp: class MyCaption : public wxControl {}; > xrc: <object class="wxControl" name="caption" subclass="MyCaption"> ></object> > > Apparantly xrc doesn't like wxControl as base class or?? No, there is no XRC handler for a wxControl (and it wouldn't make much sense to have one AFAICS, what would it do?). Regards, VZ -- TT-Solutions: wxWidgets consultancy and technical support http://www.tt-solutions.com/
|
Pages: 1 Prev: How to get coordinates of item in wxTreeCtrl? Next: xrc subclass question |