Re[2]: Problem loading .xrc file

Vadim Zeitlin <[email protected]> Wed, 27 Aug 2025 01:40:47 +0200
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
On Tue, 26 Aug 2025 14:30:51 +0100 Tim Burgess wrote:

TB> In cusclass.xrc there is:
TB> 
TB> <object class="unknown" name="custom_control_placeholder">
TB> 
TB> I understand that this is to provide a space where an object of a custom class can be inserted. What I don't understand is how the c++ code decides to insert a particular custom class into this space, as nothing in the c++ code references either "unknown" or " custom_control_placeholder ".

 C++ definitely does reference it using AttachUnknownControl(), see the code in samples/xrc/myframe.cpp.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
              https://www.tt-solutions.com/
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCaK5F/wAKCRAG6kHeT2we
hmCtAJwKzgIGdDtGznxVNa9LcHJs/buzSACdHSupFwUwIaeXI0KDUknsk3A0/gs=
=/tuQ
-----END PGP SIGNATURE-----