HISE Logo Forum
    • Categories
    • Register
    • Login

    Hide/Show Table component with ComboBox

    Scheduled Pinned Locked Moved General Questions
    6 Posts 2 Posters 301 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.
    • MorsM
      Mors
      last edited by

      Hey!

      I'm able to hide & show a table component on the UI with a button click but i'm trying to figure out a way to do it with the ComboBox.

      The table is showing the custom wavetable on the LFO Modulator, i'm trying to figure out how to make the table only appear when i select 'Custom' on the ComboBox drop down menu (which is linked to the LFO Modulators WaveForm type) and then for every other option on the ComboBox the wavetable is hidden.

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

        It's the same as for a button.

        if (combobox value == desired value)
            show the thing
        else
           don't show the thing
        

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        MorsM 1 Reply Last reply Reply Quote 0
        • MorsM
          Mors @d.healey
          last edited by

          @d-healey i guessed this but im stuck finding how to bring the combo boxes menu options into the code

          d.healeyD MorsM 2 Replies Last reply Reply Quote 0
          • d.healeyD
            d.healey @Mors
            last edited by

            @Mors what have you tried?

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            1 Reply Last reply Reply Quote 0
            • MorsM
              Mors @Mors
              last edited by

              @Mors I've tried with the 'getItemText' and then attempting to have the console print that value to make sure i'm heading in the right direction but no luck. I went through your scripting 101 video yesterday so i'm still wrapping my head around the coding side!

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

                @Mors In the combobox callback you can just use the value parameter

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

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

                27

                Online

                1.7k

                Users

                11.8k

                Topics

                102.8k

                Posts