DraggableFilterPanel change dragHandle padding
-
Can we change the padding of the dragHandle area of a filter handle via a script or parameter. I believe currently it is set to 24x24px but in order to minimize misclicks I would like to increase it. I can change the appearance to make it bigger but the dragHandle size stays the same.
Is this possible without modifying HISE Source Code?Thanks in advance.
-
obj.handle
property is an array just likeobj.area
. So [x, y, width, height] format is valid for it too. The below example uses 5px padding.HiseSnippet 1456.3oc2X87aaTDEd23rUXWnzhpJvsEqBxo3F4MIsoPDp1I1aIhjV2X2zJUU0NY2wdGx3Y1t63jFUEI3.G4u.j3NG4BmyINyEtvQj3.RH09eP3Myta1cabBAKnhhO44aduY9l2O9lwtc.2AGFxCzzK1cGerl9qazYGlvaIODgosbSM8yXrJJTfCLifVbGeTXH1USWuvMj.5EmTS844WeQDEwbvoPZZqyIN3UHCHhTz10+LBkZibwcICxX8b0W1gyVhS4CA9TvnllOxYSTe7MQRylvPS+TsbIBdPGARfC0zmbQt6Nc73ayhrecRHYCJVNvRqCrPQv1bpqjwRTsk7HT21Im6PMMci1oQgBQQgyarJwkb.dZz3rpILS8Ha7Peh7zqPN5Ykkd0xPuQPI8LTZxHJcNiNNADeQ5LR9bZikYPxoGBB6YoRjsZS7tELVhCVvDSO.sI1N.FbfGUluVsplyUq1TKTpTIH1GJLondlehYhONAX3nrB2AQWgy2rAy0FioUj1CFNc.tOQVaXOj4HHbVkxtAnssIT.qMR3UtpYujo5W0juwmOUomVpX+oCwhn7bkZ2y1d9EuVSaaXQgYjKfz0JfwS6CeQ4l5aM.xTcVvrcU78uh.MCP8+TDykhOBZrEJvzCNrx02SY3BQf9HW.9JvlbHpF8Ihp8fp3VTJwODW49d2u1CL+PoqUM8tuUluOyCLur4LSWy7RIHylC4AxU6nCJISYCojJkaDPPTyEoPiAbprlepELShZMnj9LraW7SDpfGg4heBrcUMK6.4x.raY0Nsalrs7zZS4HAg0uKghmIStuujNC74LrbiyYkbgxAHI3gpRfDzTKjD3M4raxE3awpnh8k1sj4KNUudibNIeB3TJNXjSK0PBNNGqvFNXCbPU3vRGhOvPnwJe2pwQ2slULwIJ7jwPNaYFQbKeL6njXzhiov2tyxMQBjrEOFCryGGHHRJn2DuEnWF0vWznINbSA2WYabh.DnEwJTQs3YSCZDn2+MMxkYzdRp.6GTemzAWr91DWg2A.0+p5dXReuTg581tdLGiHzELjsT8QPPIoEmgoZazOQxt3o9i8+ckqDAdPJ59e8SalGclX32SBqBH51FOsjoY4CBaK6V9iMK251kqJgWVVLC.W1RMDTzo7suKOXyP3NBLLQODMDWZWMAT9mam2O5NmComBJ4b2gTjHu7t7Ns3IfpnbZpRcSVHQrS1679GSy+jRwyYzlHb7FMGmXDbDp092fiw2T9FFs50C6HRI3jF126kv0hmOoKYogAaga8338t0sys22b3fnZUYCtdA3HrHnzWKN57nu4WpVWBXEC7E2Xt0U.yjXwo13YWWBLa9G5vbmKE3rJWtRBvbe6T6IAtZLvdM+wuTYw7IK55O6WUqw0dwE8idwE0Jgp68cq99QHIb8Q+72+CQHIjcu681+lZYrNDasxQWa6tsXx9XUMidgSb9w53KOViOTJ7rJRDP.cGCH52A5DcvP0ACzJTIgIj5gQiqIGKoTGrJoXnuO7IdRK4X83IsRlLaI3YhJANsQGBCqd1ppH3Bpwl2EsE17FXFNP1.YcLub8mNoub0+D+x0a4Hfsua.hE5yCysvcvCHcAw7vrf2IDdaF9wqI6nyhuDGELxod90sgC4H8oCRLLPIMzX.eHSjSJnvw8BZqw7EzS9etWP+JffeN0rhIbrCYfOE2hsElBuKPww2BdHPOzPpHAMes7pbF22iyHNYSzqggdv98wAY49HOPMDB30joHmu9ZXJFksn8h0WAJ1PAPbBOlwBq+1+fmQludGiH5ZJa.Me08h5B+u9h5WJWD7xXOFfbB3OzI5GRHqSeMEBbtYp+ShhFqJGaZoo9wEfeF0ltl1.Pg6gNNxP7kAAyQ6yLigOyNF9L2X3yUFCet5X3y7igOW6X8Qd4RigB9fnVN.ncqnefgd5SdJn8mSUFFIC
-
@orange yes I know that we can use
obj.handle
like theobj.area
. However when increasing theobj.handle
the actual clickable / draggable area stays the same. I am trying to also enlarge the draggable handle not only its graphic.
I've missed to include a snippet in my original post so here it is.Try clicking the edge of the white dragHandles to see this effect.
HiseSnippet 1459.3ocyX0zaaTDFd23rUX2RosppkiKVEjijaj2zzl.QnZmXuEKRZcic+PpppcxtisGx3Y1t63jFUEI3.WPhS7qfibgCbJ+D3B+D3.RHQuwwv6L6tY2MwI3ZURwGh77Luuy7Lue7LiSKetCNHf6qomuyNdXM8yYzdGln+J8QDlVy5Z5m2XMTf.6aFBs7Ndnf.rqltdt6HAzyOsl5yqu8xHJh4fSfzzdHm3fWkLfHRPaU8KITpMxE2gLHk0yWsoCmsBmxGB7ImQEMOjylnd36hjlMkgl9YZ3RDb+1Bj.GnoO8xb2cZ2muMKz9GRBHaPwxAVZsgEJD1lSckLVhpsReB0sU74NPSS2nURTHWXT3xFqQbIGfmDMtfZByDORGOzmJK8xkgdVooWkTzaDTROEklNjRWznsiOwSjLijOm0nICRNcQPXOMUBsUap74LVgCVvDyN.sI11GFbfGkVnRkxlyWoxLKUnPAH1GHLontletYrON9X3nrJ2AQWky2rFy0Fiokj1CFNqOtGQVaXOj4HHbVoht9nssIT.qERzuXYytwS0qrIeiuZlBupP9dyFfEg44RUdrs8BKuXcaaXQgYjKfz0Rfwy5AeQ4l5a0.xT9FfY6p36+FAp6i58EHlKEeLzXKjuYe3vJW+9JCWJDzC4BvyuHrKGgqgeB4ZWnLtAkR7BvkdR+mT4okM6+DK3uvBn9ySk1c7m23orgncoh07IHp4xTnlGHr0ByrjYb.oFkzigc6feoPEWHLW7KKaN58rrYQGH24icKp19cSkckmNaJGIHrdcHT7box08jbbfGmgkrIiUxEJCfj0Gop.RHyrTbf1jytKWfuGqjJVWX2BlGdptcG4bR93yoTr+HmVpY3eRNVhMbvFX+xvgkNDefgPiT1tSiiu6Ls3gSX3IkgbVSFQbOOL63jTzhhov2dPy5HAR1RGgA14g8EDIEzqi2BzGCavyaTGGrof6orMJQ.BxhHEovV5zoAMBzq+AFYxLZuLQP8SptSxfqUcahqn+A.U+1p8wjd8SDl2a6pQbLjPWwP1B0CAAk3VZFlpsQuXI57m4O2+OTtRD3AIn6+8updVz4hf+HIrJfnaa7pBllEOHr0zs3mYVrw8KVVB2TVgC.W2RMDTvo7seD2ey.3NALLQWDM.WXWMAzSjYm2O7NlineBJ2b2gTjHqbt7NrnIfpnLZnRcRV.QrS563NrF+zimF+IeEz3R2KZzhHb5OZ9N0H3KT28eMeitw78MZzsK1QjP1oMre7ov0iWNt6Ykg9aga7hn8tw8yr22c3fvZXYiudN3HrLn3WIJR80+8ub0pR.qHf8tz2stBXtHfmelM9qaKAtQ1G7vbmOA3BJWtYDf42b1ysmD3VwK582vSYwBw.hePWAr3gWzO8vKpULU26GW6iCQh45y+se5mCQhI6dO9p+tZYrNBasxPWa6NMXx9aU8idtwN+Xch4Gs04CkBRqgD9DPOx.h9sgNTGLTcv.MDURXJoNY33JxwRJ0FqRJF56CehlzRNVOZRq3ISWBd9vRfyZzlvvpmupJBthZr4iPagMuClg8kMSVmvKX+0w8Erdi8KXumi.19N9HVfGOHyB2FOfzAD4CRC9f.3MZ3Wrtr6NM9Jbj+Hm5021FNjizm1HwPekLQsA7gLQFYgbisrvavKom9+cuj9z6hf2NpY4i4Xax.OJtAaKLEdufhiWBdfPWzPpHFMas7ZbF2qOmQbRmnWGC8f85g8Sy8QdfpIDvSOSPtb00wTLJcQ60ptJTrg7g3DdBiEVuw+vmQlu9PiP5ZJa.Memj2dqboctw5R62Jb7cvE0mJWDbZrGCPN97m4D9CLj0oumBAN2L0+ah7FqIGaZoo9QGfeFUlsh1.Pg6YNNxP70AAyQ6ybSfO2XB7Y9IvmaNA9bqIvmEl.eV7D8Qd4RsgB9fvVN.nUive3gdxSdxo8O.WghFIC
-
@oskarsh I think
obj.handle
has a limited bound for the clickable area that shouldn't be passed. You can see the bound when you set the padding to zero in my snippet.Because of that, even if you enlarge it, there are some shifted pixels since the handle object has the limited space.
-
@oskarsh I see what you mean, but with a decreased pad size of say 20 px, there's no problem for me...