Page 1 of 1

unicodeLabel not displaying unicode glyph?

Posted: Mon Sep 05, 2022 7:53 pm
by stam
Hi all,

not sure if this is correct...

if i have a field "test" and a button "test"

Code: Select all

put numToCodePoint("0x1F4BE") into field "test"
produces
field.png
field.png (1.74 KiB) Viewed 2902 times
I assumed it would be the same for labels but it seems not...

Code: Select all

set the unicodeLabel of button "test" to numToCodePoint("0x1F4BE")
does nothing... the same seems to apply to any control with a 'label' property, such as graphics...

Am i misunderstanding the dictionary? Is this expected behaviour?
Many thanks
Stam

Re: unicodeLabel not displaying unicode glyph?

Posted: Mon Sep 05, 2022 7:58 pm
by richmond62

Code: Select all

 set the label of button "test" to numToCodePoint(0x1F4BE)
works. 8)

Re: unicodeLabel not displaying unicode glyph?

Posted: Mon Sep 05, 2022 8:01 pm
by stam
ah i see, i'll try that - thanks Richmond

Re: unicodeLabel not displaying unicode glyph?

Posted: Mon Sep 05, 2022 8:03 pm
by richmond62
SShot 2022-09-05 at 22.02.18.png
-
I don't know who or what told you to put quotation marks
around the Hexadecimal Unicode Glyph Address.

Re: unicodeLabel not displaying unicode glyph?

Posted: Mon Sep 05, 2022 8:04 pm
by stam
Yep - assigning the label instead of the unicodeLabel did it, thank you Richmond.

What is the point of the unicodeLabel then?
I had initially tried set the unicodeLabel of button "test" to "0x1F4BE", but that didn't work either...

Re: unicodeLabel not displaying unicode glyph?

Posted: Mon Sep 05, 2022 8:06 pm
by richmond62
What is the point of the unicodeLabel then?
Dunno: probably much the same as the tail I had when I was a 5 month embryo
in my mother's womb. 8)
-
SShot 2022-09-05 at 22.06.46.png

Re: unicodeLabel not displaying unicode glyph?

Posted: Mon Sep 05, 2022 9:01 pm
by stam
Ahhhhh I missed the deprecation - thanks for pointing that out… I only came across unicodeLabel when googling “how to” and the wiki showed this - but the deprecation wasn’t clear…

Anyway, learn something new every day….

Re: unicodeLabel not displaying unicode glyph?

Posted: Mon Sep 05, 2022 9:12 pm
by richmond62
I don't just know who writes the LiveCode wiki, but is a bit patchy, so, while I use it I then generally check waht it says in the LC Dictionary.