Viewport Table Dragging
-
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!
-
Probably should use a panel for this - https://docs.hise.audio/scripting/scripting-in-hise/scriptpanel.html#a-buttonpack
-
@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 themonInit
. In this case this workaround is possible since I know how many panels there can be in total.Thanks David!
-
@oskarsh said in Viewport Table Dragging:
I would have 384 Panels each with all callbacks allowed.
Why so many?
-
@d-healey so when recreating the pattern player I got.
12 rows
32 columnswhich 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.
-
@oskarsh One panel is all you need, it's very easy. Did you click the link I gave?
-
@d-healey Sorry the link completely slipped my sight! This looks very promising and exactly like what I need. HISE keeps blowing my mind!