From: Troels on 11 Nov 2009 10:14 >> I have this xrc object working >> >> cpp: class MyCaption : public wxStaticText { DECLARE_DYNAMIC_CLASS(MyCaption) }; >> 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 { DECLARE_DYNAMIC_CLASS(MyCaption) }; >> 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 I suppose not. Do I really have to write a new xrc handler then, for MyCaption, in the case of not deriving from a stock widget? Thanks Troels
|
Pages: 1 Prev: xrc subclass question Next: why wxXmlDocument.Load() return False ? |