Need SliderPack like behavior for buttons
-
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.
-
Why not use buttons for this?
-
you can't do mouse drag across buttons
-
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 row 16 columns
-