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: 9
    • Replies: 97
    • Total: 106
    • ★★

    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
    goodweather
    Participant
    • Topics: 45
    • Replies: 550
    • Total: 595
    • ★★★

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

    #117060
    Tedjuh
    Participant
    • Topics: 9
    • Replies: 97
    • Total: 106
    • ★★

    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
    goodweather
    Participant
    • Topics: 45
    • Replies: 550
    • Total: 595
    • ★★★

    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
    dnaldoog
    Participant
    • Topics: 4
    • Replies: 480
    • Total: 484
    • ★★

    Thanks for that Tedjuh!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Programming’ is closed to new topics and replies.
There is currently 0 users and 55 guests online
No users are currently active
Forum Statistics
Threads: 2,495, Posts: 17,374, Members: 77,605
Most users ever online was 12 on January 22, 2019 3:47 pm
Ctrlr