Alt codes in uiLabel

Home Forums General Programming Alt codes in uiLabel

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #117005
    Tedjuh
    Participant
    • Topics: 3
    • Replies: 25
    • Total: 28

    Hello all,

    Short question. Is there a way to show Alt-codes in a label?

    Funny thing is it shows correct when I type it in the uilabelcontent directly. But when I try to put it in a label with lua code, it shows something like: Ã(something).

    Thank you already
    Tedjuh

    #117045
    goodweathergoodweather
    Participant
    • Topics: 41
    • Replies: 443
    • Total: 484
    • ★★

    Hi!
    What do precisely mean? Can you post a screen capture or example?
    What do you want to display?

    #117060
    Tedjuh
    Participant
    • Topics: 3
    • Replies: 25
    • Total: 28

    I’m working on a chordBuilder and was in need of some symbols for chords like O,Ø,¯5,_ (diminished, half diminished, -5,flat)

    See “right one.jpg” for typing a alt-code(0216) or “Ø” directly in the uiLabelText window. See “faulty one.jpg” when I insert the same alt-code through lua in a uiLabel.

    Did some reading and found out it had something to do with “string.char”. In this case, when I type: (“C”string.char(0216)) in lua, it shows CØ correctly.

    So, thnx for the heads up. Found out already. But typed the answer to my problem here anyway in case someone else might have the same problem as I did.

    Attachments:
    You must be logged in to view attached files.
    #117068
    goodweathergoodweather
    Participant
    • Topics: 41
    • Replies: 443
    • Total: 484
    • ★★

    Glad you found the solution!
    Usually, there are almost always solutions: this forum, Lua.org or other Lua dev topics, Juce API documentation, panels from other users…

    #117071
    dnaldoogdnaldoog
    Participant
    • Topics: 1
    • Replies: 236
    • Total: 237
    • ★★

    Thanks for that Tedjuh!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
There is currently 0 users and 40 guests online
No users are currently active
Forum Statistics
Threads: 2,308, Posts: 16,186, Members: 59,523
Most users ever online was 12 on January 22, 2019 3:47 pm
Do NOT follow this link or you will be banned from the site!