Page 1 of 1

MUIRoyale - Problem with % sign in TextItem Content

Posted: Mon Jan 18, 2021 2:07 am
by p-OS
Hello,

in my GUI XML I define a text item:

Code: Select all

<text id="RATIO" frame="Text">   </text>
At runtime I try to set the value of this item to "90%"

Code: Select all

mui.Set("RATIO","Contents","90%")

But actually it then is just "90"

Do I have to escape this symbol ? If so, how ?

Tried "90\%", "90%%", "90\37", but without any success

Re: MUIRoyale - Problem with % sign in TextItem Content

Posted: Mon Jan 18, 2021 4:59 pm
by jPV
p-OS wrote: Mon Jan 18, 2021 2:07 am

Code: Select all

mui.Set("RATIO","Contents","90%")
This works for me on MorphOS. On which system you're testing it?

Re: MUIRoyale - Problem with % sign in TextItem Content

Posted: Mon Jan 18, 2021 8:15 pm
by p-OS
jPV wrote: Mon Jan 18, 2021 4:59 pm This works for me on MorphOS. On which system you're testing it?
MorphOS 3.15

Hollywood 8.0
MUIRoyale 1.7

GUI.xml and my .hws Skript are written in ISO 8859-1

Re: MUIRoyale - Problem with % sign in TextItem Content

Posted: Fri Jan 22, 2021 12:14 am
by airsoftsoftwair
Works here as well on MorphOS 3.11. Looks like a MUI bug to me. Should be reported to MorphOS devs...