HISE Logo Forum
    • Categories
    • Register
    • Login

    Need SliderPack like behavior for buttons

    Scheduled Pinned Locked Moved Scripting
    6 Posts 3 Posters 1.2k 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.
    • E
      elanhickler
      last edited by elanhickler

      I tried using SliderPack and if statements to toggle the slider values on/off. It almost works.

      Ideally, the state of the first button clicked should be the state applied to buttons that the mouse passes through while dragging. I don't see mouse callback functionality to implement this. I need to know when the mouse is lifted to know when to get a new value to apply.

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

        Why not use buttons for this?

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

        1 Reply Last reply Reply Quote 0
        • E
          elanhickler
          last edited by elanhickler

          you can't do mouse drag across buttons

          1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart
            last edited by Christoph Hart

            Thats a limitation of JUCE actually (the dragged over components dont get the mouse event).

            But ScriptPanel to the rescue (again) - it will display rectangles as buttons and allows dragging with your desired behaviour. Whenever you change a value it will send a control callback with the index of the matrix cell when on and the negative index when off. the index will be 1 based for this so it will feel like writing Lua :) I'll try to hack something together for you soon. How many rows / columns do you need

            1 Reply Last reply Reply Quote 0
            • E
              elanhickler
              last edited by

              1 row 16 columns

              1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart
                last edited by

                See here:

                http://hise.audio/manual/ScriptPanel.php#32abuttonpack

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

                18

                Online

                1.8k

                Users

                12.0k

                Topics

                104.6k

                Posts