Kitty
New Member
Posts: 9
|
Post by Kitty on Nov 18, 2019 13:58:53 GMT -8
I am having an odd problem...I have some nicely working code in which I have some sliders and one point (a disk) all of which capture tags properly.
However, I also have some points (disks) which I have not explicitly asked to be tagged and yet when I press them they are being captured as some sort of tag event.
Is it necessary to end/close/terminate the GD.tag() command? (I'm wondering if I'm erroneously leaving tagging on and it's causing the problems I'm having).
(Apologies, can't publish the code as it's for a client)
|
|
|
Post by jamesbowman on Nov 18, 2019 14:24:34 GMT -8
Yes, everything drawn after a GD.Tag(x) gets tagged with value x. Each pixel drawn gets 'painted' with tag x.
That's often not what you want, so you can do a GD.TagMask(0) which turns off the painting operation, so drawing does not affect any tags.
GD.TagMask(1) turns it back on.
|
|
Kitty
New Member
Posts: 9
|
Post by Kitty on Nov 18, 2019 14:35:50 GMT -8
It works! Many thanks :-)
|
|