From: Troels on
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
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/