Thanks Christof!
In this project is completely posible do it work with the actual solutions.
But I'm learning a lot with this project and when I saw that behavior I found it strange...
I will see if it behavior was reported and report it if necessary..
Cheers!
Hi, I'm sure that data structure polygons do some approximations for capturing mouse events so I wouldn't expect it to be really exact for more complex shapes than a rectangle. do you really need to draw the shapes this way? Jaos solution actually works, it's just that the keys don't show up when the abstraction is loaded. it works once the GUI is refreshed. a workaround is to send a [vis 1, vis 0( message to the parent canvas. you can even do this from within your abstraction with [iemguts/sendcanvas 1].
either way, have a look at my solution for filtering unwanted mouse events in the last patch I sent you. you can also apply it here.
Christof
Gesendet: Donnerstag, 25. Mai 2017 um 18:39 Uhr
Von: "Esteban Viveros" <emviveros@gmail.com>
An: Pd-List <Pd-list@lists.iem.at>
Betreff: [PD] Weird behavior with Data Structures
Hi again!
I'm have a weird behavior working with data structures...
I draw a keyboard and I tried to use clicks to change the color key. but I have simultaneously responses at boundaries. So I draw the keys without boundaries and I have in black keys vertical boundaries response of black key scalar and white key scalar.
I can't find error in the patch.. Can anyone confirm if is that a bug or something wrong with me..? :)
Patch attached
Cheers
--
www.estebanviveros.com[http://www.estebanviveros.com]
_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list[https://lists.puredata.info/listinfo/pd-list]