Bug #10818 2007-04-05 20:48

jewe

xrc & is made in to "_" by plug in

Hi,

Create an xrc file with xrc edit.

put a & in a button for example.

xrc file:

<?xml version="1.0" encoding="cp1252"?>

<resource>

<object class="wxDialog" name="DIALOG1">

<title></title>

<object class="wxButton">

<label>T&amp;esting</label>

</object>

</object>

</resource>

Check the &amp;

open the xrc file in Code blocks and change something.

save the file and look again.

the &amp; is replaced by a _ which is not according to the xrc standard.

Category
Plugin::wxSmith
Group
 
Status
Closed
Close date
2007-05-26 17:44
Assigned to
biplab
biplab 2007-05-26 17:44

As per Technical Note 14, distributed alongwith source code of wxWidgets, use of '_' is recommended to represent '&' character.

Please read the "String" section of docs/tech/tn0014.txt file in your wxWidgets source dir for more details.