Forum
    • Categories
    • Register
    • Login

    How can i have a button that makes me go to a different section/page on my synth. Just like serum does with osc mix matrix and global pages

    Scheduled Pinned Locked Moved Newbie League
    3 Posts 3 Posters 16 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.
    • C
      chimaera_09
      last edited by

      How can i have a button that makes me go to a different section/page on my synth. Just like serum does with osc mix matrix and global pages

      David HealeyD dannytaurusD 2 Replies Last reply Reply Quote 0
      • David HealeyD
        David Healey @chimaera_09
        last edited by

        @chimaera_09

        https://youtu.be/_s7LTRz8pEc

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - HISE tutorials
        My Patreon - More HISE tutorials

        1 Reply Last reply Reply Quote 1
        • dannytaurusD
          dannytaurus @chimaera_09
          last edited by dannytaurus

          @chimaera_09 Make the button show/hide a panel. Use the panel to house all your extra controls.

          const pnlSettings = Content.getComponent("pnlSettings");
          const btnSettings = Content.getComponent("btnSettings");
          btnSettings.setControlCallback(btnSettingsControl);
          
          inline function btnSettingsControl(component, value) {
              pnlSettings.showControl(value); // button shows/hides the panel
          }
          

          You can add a button in the panel to close it too:

          const btnSettingsClose = Content.getComponent("btnSettingsClose");
          btnSettingsClose.setControlCallback(btnSettingsCloseControl);
          
          inline function btnSettingsCloseControl(component, value) {
              if (value) {
                  pnlSettings.showControl(false);
                  btnSettings.setValue(0); // sets the 'off' state of the button
              }
          }
          

          Meat Beats: https://meatbeats.com
          Klippr Video: https://klippr.video

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

          21

          Online

          2.4k

          Users

          13.8k

          Topics

          119.9k

          Posts