#NULL wrote:<edit>: I don't have Ubuntu 18 at hand.
I can't confirm that, and that would be weird! What character is it? Are you sure there are not multiple TextGadgets? In the Windows screenshot there is a colon ':' in black too!
Works:
Code: Select all
win = OpenWindow(#PB_Any, 50,100, 800, 600, "window")
t = TextGadget(#PB_Any, 10, 10, 100, 30, "button " + Chr(9872))
SetGadgetColor(t, #PB_Gadget_FrontColor, #Red)
t = TextGadget(#PB_Any, 10, 30, 100, 30, "button " + Chr(9873))
SetGadgetColor(t, #PB_Gadget_FrontColor, #Red)
Repeat
WaitWindowEvent()
Until Event() = #PB_Event_CloseWindow
Hello!
The forums don't accept emoji, so here is the chr:
https://pastebin.com/7ND2jPCv
I tried a DEBUG ASC("symbol above here") and it gets 55356.
But if I try:
Code: Select all
win = OpenWindow(#PB_Any, 50,100, 800, 600, "window")
t = TextGadget(#PB_Any, 10, 10, 100, 30, "button " + Chr(55356))
SetGadgetColor(t, #PB_Gadget_FrontColor, #Red)
t = TextGadget(#PB_Any, 10, 30, 100, 30, "button " + Chr(9873))
SetGadgetColor(t, #PB_Gadget_FrontColor, #Red)
Repeat
WaitWindowEvent()
Until Event() = #PB_Event_CloseWindow
I get a blank gadget in Ubuntu and two corrupted characters in Windows 10.
It is strange, because if I paste the emoji directly into the IDE, it appears a flag.