Changes from 5.3.136 to 5.3.159

Home Forums General News and releases Changes from 5.3.136 to 5.3.159

Viewing 6 posts - 21 through 26 (of 26 total)
  • Author
    Posts
  • #68517
    atom
    Keymaster
      • Topics: 159
      • Replies: 2945
      • Total: 3104
      • ★★★★★

      Well once you have the native JUCE comboBox object you can do anything with it:


      c = panel:getComboComponent("modulator-1")

      if c ~= nil then
      combo = c:getOwnedComboBox()
      combo:setText(string.format("Item %d", value), 0)
      combo:clear(0)
      combo:addItem (string.format("Item %d", value+1),1)
      combo:addItem (string.format("Item %d", value+2),2)
      combo:addItem (string.format("Item %d", value+3),3)
      end

      you can use any of the https://www.juce.com/doc/classComboBox methods on it

      #68518
      dasfaker
      Keymaster
        • Topics: 80
        • Replies: 793
        • Total: 873
        • ★★★

        Thanks Atom, this works like a charm.

        #68519
        dasfaker
        Keymaster
          • Topics: 80
          • Replies: 793
          • Total: 873
          • ★★★

          Can this fix be added to combos using setValueMapped(value, false)? This flag is still ignored.

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

            allright i’ll have a look at all those set*Value* methods and unify them

            #68543
            dasfaker
            Keymaster
              • Topics: 80
              • Replies: 793
              • Total: 873
              • ★★★

              Hi Atom

              I’ve been messing with the native JUCE comboBox functions, and I find no way to assign mapped values to the combo. When you add or remove items directly to the combo object, the component’s field “combo content” doesn’t change, and the values mapped in this field are used when you select an item of the combo, so you can change the combo content but not the mapped values.

              #68793
              dasfaker
              Keymaster
                • Topics: 80
                • Replies: 793
                • Total: 873
                • ★★★

                allright i’ll have a look at all those set*Value* methods and unify them

                Just downloaded 5.3.201 and setValueMapped(value, bool) still ignore the flag.

                But setValueMapped(value, bool, bool) WORKS (in a strange way). The flag that works here is the second one, but setting it to true, the message is not sent, and setting it to false sends the message (inverted behaviour).

              Viewing 6 posts - 21 through 26 (of 26 total)
              • The forum ‘News and releases’ is closed to new topics and replies.
              There is currently 0 users and 85 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