HISE Logo Forum
    • Categories
    • Register
    • Login

    Combobox - slider control

    Scheduled Pinned Locked Moved Scripting
    7 Posts 2 Posters 297 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      paper_lung
      last edited by

      Hi all, what's the easiest way to achieve controlling a combo box value with a slider? I've got an instrument with 100 sample maps, which also has a combobox to display all the samplemaps. This is a bit long visually, so I'd like to implement a slider that cycles through the maps, so the user can just cycle through them rather than clicking the box to access a long list.

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        From the slider's callback use yourComboBox.setValue(value + 1);

        P 1 Reply Last reply Reply Quote 2
        • P
          paper_lung @d.healey
          last edited by

          @d-healey Perfect, thanks!

          P 1 Reply Last reply Reply Quote 0
          • P
            paper_lung @paper_lung
            last edited by

            @d-healey I've just tried this but it doesn't seem to be working. It cycles through the combo-box list, but it doesn't load the corresponding sample map - just cycles through the names. Selecting an item within the combo box works. Any ideas what could cause that? Appreciate the help.

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @paper_lung
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey
                last edited by

                You need to call .changed if you want to trigger the combo box's callback.

                P 1 Reply Last reply Reply Quote 1
                • P
                  paper_lung @d.healey
                  last edited by

                  @d-healey Ah that's it, knew it was something simple! Thanks.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  39

                  Online

                  1.8k

                  Users

                  12.1k

                  Topics

                  105.1k

                  Posts