MUIRoyale - Problem with % sign in TextItem Content

Discuss any general programming issues here
Post Reply
p-OS
Posts: 167
Joined: Mon Nov 01, 2010 11:56 pm

MUIRoyale - Problem with % sign in TextItem Content

Post 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
User avatar
jPV
Posts: 600
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: MUIRoyale - Problem with % sign in TextItem Content

Post 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?
p-OS
Posts: 167
Joined: Mon Nov 01, 2010 11:56 pm

Re: MUIRoyale - Problem with % sign in TextItem Content

Post 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
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: MUIRoyale - Problem with % sign in TextItem Content

Post by airsoftsoftwair »

Works here as well on MorphOS 3.11. Looks like a MUI bug to me. Should be reported to MorphOS devs...
Post Reply