move panel
-
Is it possible to create a panel that can be moved with the mouse in a compiled plugin? I know that it is possible with 2 sliders x and Y with (Panel5.set("y", -value); )
-
@yall yes
-
@d-healey just click allow dragging ^^
I hadn't opened my eyes :) -
@yall @d-healey
but can we set a limit in the interface? because if I slide the panel a little too far it is lost. -
@yall I haven't used it but I think it should be possible by checking the position within the mouse callback.
-
@yall use
Scriptpanel.setDraggingBounds(area)and provide the area where you want the panel to move in. Works like a charm.