Is there a way to drag and drop data from one panel to another?
-
@VirtualVirgin said in Is there a way to drag and drop data from one panel to another?:
I would like to be able to drag and drop from one to the next.
If I have panel0.data.myData, is there method to drag and drop to copy the data to panel1.data.myData?you have drag and drop events for both panels - see if you can work out what to do in the drag event of panel 1 and the mouse up event of panel 2....
-
@VirtualVirgin unfortunately the mouse CB of a panel consumes the action for all panels. You could do something like checking the target panel positions:
HiseSnippet 1786.3oc2X0raabCDlqsWmnMwsMEEE83VeHPp0PPxVwNFoow+H6DiFaKX43jzff.5c4JQHJxMborsZQ.xw9Rza8gnOB8VeO5o7.Tf1gb2U6JG4ehPSPaMRrE4LCmONb32LTMjBORTjPhrb1ueHAYcc6l84p1q2FS4nspirlwtdOuN0oQgLbezZ8CwQQDejk0j2WqhUgoPledy8VCyvbOR1THzABpG4gztTU1rMV46nL1lXex9zt4zt1Ja4I3qKXhd.blztBJD60A2hrCVq1D1nGfiZir9J6J2ZQBYoEB78wKrf+hKt3x2d4ZKWEGToF9vpKtbs4qsz72do.j0za3SUBYSEVQhPVSslvuey1hi4wN3.ZD8PFQOnJpI343o2Tv70aQ8rn0aSY9MRiSQHjkcirn1jwQsOydapOcv7YQuOwHvMyh7APqIFFdSND7plGdUxAuQ.IqbPZpXHcC6ldRZnJShFOWydKthHCvv4TdnDqKZhecJ60EfFbU4t3NjMkvfAVTbwJUly8VUpT5Ny3.pEIXjxdLBVVrzcbbfSuHk6QXoaDbD5QZvYt20Mc4ZQTqK5FJ3vfhyNPiYG1REVBJByGAl9rQaaCLmvle1Ry43dF+bN1svXZWsYK8b.oNC.d4HhZaQuHx5XF6PHSsXPOtmhJ3EIGA1Ux4GcJjsktiSAmBz.2XgkoQ0k3V6xY8K4T.Tzn4I80aZUaZjFA2mINDyZHhn5E8IEK490twFexbfAEJ35NZUeZNU6CfNVW3OABoawPWJOWXFbuw+FrENZ+9M.xdVkm6dyaFuVgmE7LBdL0W0FF9sWrUOMcwqdgpkr3OfPa0Vkt5UetF9w3uP7dBhfg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8Hf3bh3zgshNPKEZvBcf9hpNICslPzoK1jrOVMQjmA8ihEdM6lPpn446lDwO2L18w3iHt2m.IoZ9+pm4S3+8e9OtrOgO7R+D9c8Tf62G5UNJTDMzB2jzktOTwNJ+jOJBdyI4k6oC24mecAVNRQu4daBaxQZSSrpmzbtkdWOWkrIOuuYfpi42LvT+q6aF3+.8qLTw3BoXrIUeWdC9QDFbWvfwOER9Cv8XpzYGNWdaAWjR1mcPuGAJc0pk95dF1G4FZUkB5KNalNqrGgQv4RZ+yeYkGBIaX41F5rwJVT8c9KxYjmWegcLbc0W.c+uaelS9+59L+fz+zGBezE6IEuvKtsScd5UMy.6ato.cA6s0icqhNJtBW1YYWfk6EddCuTukgyOtFtv3ZXsw0vaMtFt33Z3Riqg29hMTWDZ0dJQ23qlP2NM1vzMhk0FbLjkatQf9aF61mo.
-
@ustk said in Is there a way to drag and drop data from one panel to another?:
mouse CB
What about a mouse listener?
-
@d-healey Finally I found a way, it was a bit mind bending...
HiseSnippet 2210.3oc2X0saajaEdFaOYiUVWzTTTzK4pKRkaEzJ4ejSZP6ZaY6MBM1QvRwsEAAAzyPIwpQjSIorr5hEnW1Whd29fz2f9dzq1GfBzdNblQynDIGagjftUFvXH44P9wuyO7P1RI8YZsT43VnyjHli6m60dhvzuQeJW3z7HG2M7NZj+fi35nP5DmCmDQ0ZVfiq6peMJh65q4X+88e0gzPpvmk0kiyERtO647gbSVus1+2wCCOgFv5vGlS5c1uouTzPFJGAvYUupNQT+AzdrynnXq347Lptui6uzq5t0Yr81taP.c6sCpWu9Sd7S14I0ncqtC8xZ0exNasyda838553duiC3FopsgZXZG20NTFLoce4XQ7BbAWyuLjgMp4zFV43tOQFFfaQrWmF84gAsR4IsiiqWqLVa0XV6m5cJOfOs+L16GaGfjoQdBzckYg2py.uZ4gW0bvaNPxMGjVKFROzqsuhGYxFAwyC7ZJLLUWJXmxCkXYcV46tuWCIHgvTYHc.6DEzXpFkpWsZYxtUqt4S2n.HlVFxp3GxnpR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OVbEKDhErX7m.N+coiBMo8Nqu7oRgLMYelg9bFbzUudX3dF1m6F5.7oaFj0yf8O293.YNs+6ua+mCNaT0o1zYKEWT6N+1yy0d8y8hgKAC.I+vsNyU++55L+jT+zmh0XH0WIeiebYmne58s8.6ag8.508NEaSp4bU7IbY1xgPVt236O6T8NJt0xp31Kqh6rrJt6xpX8kUw8VVEe76WQ7PnCFYjCiCMgpcZcrsZDW2iETvK2FQ37eAPxYXrF
-
@ustk Nice! Do you think you could incorporate the draggable feature into it?
-
@d-healey How are you doing it in your GIF?
allowDragging
? -
@ustk Yeah
-
@d-healey so what is the particular reason for using a broadcaster instead?
-
@ustk No idea, I'm just making suggestions, I haven't tried any of it myself :)
-
@d-healey Well, seeing how I don't feel comfortable with BCs I'll pass on this one
Alright... I can hear you across the english channel... It's one more reason to get on it... -
@ustk said in Is there a way to drag and drop data from one panel to another?:
I don't feel comfortable with BCs
Just wait, you're going to love them :)
-
@d-healey Yeah I force myself to use them, but to be honest I don't have that many cases where I need them... But I'm a patient little padawan!