Deselect all iuboxes not working…

Home Forums General Programming Deselect all iuboxes not working…

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #117683
    jmarco
    Participant
      • Topics: 9
      • Replies: 22
      • Total: 31

      Hello, you all.

      I’d like to deselect all my boxes onpanelload, but it’s a bit difficult to me…


      I’m trying to identify all boxes and then deselect them one by one.

      I’ve this code (I am not a programmer, as you can notice):

      function init(mod, value)
      n = panel:getNumModulators()
      for i=0,n-1 do
      mod = panel:getModulatorByIndex(i)
      nome = mod:getProperty(“nome”)
      modulatorType = panel:getModulatorByName(nome):getComponent():getProperty(“uiType”)
      if modulatorType == “uiListBox” then
      panel:getListBox(Nome):deselectAllRows()
      end
      end
      end


      Any ideias? 🙂

      João Marco

      #117684
      jmarco
      Participant
        • Topics: 9
        • Replies: 22
        • Total: 31

        FIND IT!! two typos!! Letting the RIGHT code here! Thanks!

        function init(mod, value)

        n = panel:getNumModulators()

        for i=0,n-1 do

        mod = panel:getModulatorByIndex(i)

        nome = mod:getProperty(“name”)

        modulatorType = panel:getModulatorByName(nome):getComponent():getProperty(“uiType”)

        if modulatorType == “uiListBox” then

        panel:getListBox(nome):deselectAllRows()

        end

        end

        end

      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 80 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