Page 1 of 1
Altering xrc code generation in wxCrafter
Posted: Thu Oct 06, 2022 6:27 pm
by ArsDigita
I need to alter the header of a XRC file generated by wxCrafter. The header at present looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<resource xmlns="http://www.wxwidgets.org/wxxrc">
to make it work in up to date wxWidget compilation I need this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.5.3.0">
in other words, I want to add a string "version="2.5.3.0"" to existing <resource> statement.
How do I do it from within wxCrafter/CodeLite? Is it possible at all to alter xrc code generation in wxCrafter?
Best, Bogdan Rozborski, ArsDigita.
Re: Altering xrc code generation in wxCrafter
Posted: Thu Oct 06, 2022 11:46 pm
by DavidGH
Hi,
to make it work in up to date wxWidget compilation I need this
Hmm. I'd not noticed the change. I wonder why they did it...
But I've just tested the 'xrc' sample (that comes with the wxWidgets source), using the latest git wx version. Changing back to the original
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<resource xmlns="http://www.wxwidgets.org/wxxrc">
in the sample runs without a problem here (Linux, debian 10). Does it for you?
However, to answer your question: no, afaik there's no way to tell wxCrafter to alter those strings. Perhaps there should be, though.
Regards,
David