HISE Logo Forum
    • Categories
    • Register
    • Login

    Viewport Table Dragging

    Scheduled Pinned Locked Moved Scripting
    7 Posts 2 Posters 200 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.
    • oskarshO
      oskarsh
      last edited by

      I am using a lot of tables in my Plugins for Sample Browsers to Pattern Players. Is there a way to support dragging?

      In this example I am using a matrix of button. Currently I need to click on each button individually to select it, however I would like to be able to drag over a row of buttons in order for it to be selected.

      Will I need to do a custom implementation using the Mouse Events Broadcaster?

      Any advice is much appreciated!

      2023-10-28 14.56.30.gif

      breathing HISE

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

        Probably should use a panel for this - https://docs.hise.audio/scripting/scripting-in-hise/scriptpanel.html#a-buttonpack

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

        oskarshO 1 Reply Last reply Reply Quote 1
        • oskarshO
          oskarsh @d.healey
          last edited by

          @d-healey Just wondering when does panels start to create problems? In my example I would have 384 Panels each with all callbacks allowed.

          The reason that I chose to use tables is that I can programmatically after onInit add new columns to it. Using panels in general require a lot of workarounds because you can only spawn them onInit. In this case this workaround is possible since I know how many panels there can be in total.

          Thanks David!

          breathing HISE

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

            @oskarsh said in Viewport Table Dragging:

            I would have 384 Panels each with all callbacks allowed.

            Why so many?

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

            oskarshO 1 Reply Last reply Reply Quote 0
            • oskarshO
              oskarsh @d.healey
              last edited by

              @d-healey so when recreating the pattern player I got.

              12 rows
              32 columns

              which are 384. I could also use on single panel and do some drawing inside and parsing the X Y position but I feel like this gets very complex very quickly. So using a panel for each "trigger" would be my way to go here.

              breathing HISE

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

                @oskarsh One panel is all you need, it's very easy. Did you click the link I gave?

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

                oskarshO 1 Reply Last reply Reply Quote 0
                • oskarshO
                  oskarsh @d.healey
                  last edited by

                  @d-healey Sorry the link completely slipped my sight! This looks very promising and exactly like what I need. HISE keeps blowing my mind!

                  breathing HISE

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

                  52

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.9k

                  Posts