passing value to uiLabel

Home Forums General Using Ctrlr passing value to uiLabel

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #736
    msepsis
    Participant
    • Topics: 219
    • Replies: 732
    • Total: 951
    • ★★★

    Is it possible with the uiLabel to instead of set it to display the last changed modulator to, say display the value of a variable through Lua?
    any hints on getting this done?

    Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen

    #4857
    atom
    Keymaster
    • Topics: 159
    • Replies: 2945
    • Total: 3104
    • ★★★★★

    Ofcourse you can the displayed text of the uiLabel is just a property
    [code:b9fuy2pd]
    label = panel:getComponent("label")

    if label ~= nil then
    label:setPropertyString ("uiLabelText", "text")
    end
    [/code:b9fuy2pd]

    or by using the special component method

    [code:b9fuy2pd]
    label:setComponentText (string.format("my text"))
    [/code:b9fuy2pd]

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Using Ctrlr’ is closed to new topics and replies.
There is currently 0 users and 52 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