How ot reach the properties of a specific tab with Lua?

Home Forums General Programming How ot reach the properties of a specific tab with Lua?

Tagged: 

This topic contains 1 reply, has 1 voice, and was last updated by goodweather goodweather 2 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #95956
    goodweather
    goodweather
    Participant
    • Topics: 39
    • Replies: 367
    • Total: 406
    • ★★

    Hi,
    do one of you know how to reach the properties of a specific tab with Lua?
    I’d like to change the tab background image on the fly.

    I can reach the tab modulator/component
    modMyTabs:getComponent():setProperty(…)
    but don’t know how to reach a specific tab and its properties…

    For example how to reach the image property of tab 3?

    Thx for your help (I will also search further on my side in the Ctrlr code and in Juce)

    #95962
    goodweather
    goodweather
    Participant
    • Topics: 39
    • Replies: 367
    • Total: 406
    • ★★

    OK it can be an issue with Ctrlr… here is what I found:
    Components can have child components. This is the case for the Tab component.
    So, modMyTabs:getComponent():getNumChildComponents() will give the number of tabs. Fine.

    Using
    modMyTabs:getComponent():getChildComponent(1)
    I can reach the first tab but then when doing
    what (modMyTabs:getComponent():getChildComponent(1))
    I don’t find the getProperty() or setProperty functions in the list of possible functions to use.

    Is this something forgotten and meaning I cannot change the properties of a Tab?
    Using 5.3.201…

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There is currently 0 users and 34 guests online
No users are currently active
Forum Statistics
Threads: 2,205, Posts: 15,547, Members: 54,777
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!