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: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #95956
    goodweather
    Participant
      • Topics: 45
      • Replies: 550
      • Total: 595
      • ★★★

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

        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)
      • The forum ‘Programming’ is closed to new topics and replies.
      There is currently 0 users and 72 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