Computer Science Canada Mouse click... procedure run |
Author: | pr0xiler [ Thu May 26, 2005 8:08 am ] |
Post subject: | Mouse click... procedure run |
I need help... I want to run a procedure when you click a certain area with the mouse within a box or oval. Thanks. |
Author: | jamonathin [ Thu May 26, 2005 9:44 am ] | ||
Post subject: | |||
Just use whatdotcolor, and make sure you're checking for the same color that's in the circle. You can do coordiantes as well, but whatdotcolor is faster, and efficient, IF there aren't many colors.
|
Author: | pr0xiler [ Fri May 27, 2005 8:12 am ] |
Post subject: | |
Thanks... but how would I do it within coordinates, because I have over 20 red circles in my program and they all need to run different procedures. |
Author: | Tony [ Fri May 27, 2005 9:06 am ] |
Post subject: | |
if the distance between mouse click and center of the circle is equal to or is less than the radius of the said circle, it was clicked. Run a forloop to check all the circles. |
Author: | pr0xiler [ Tue May 31, 2005 8:53 am ] |
Post subject: | |
can i please have an example in code... im clueless ![]() ![]() |
Author: | StarGateSG-1 [ Tue May 31, 2005 9:28 am ] |
Post subject: | |
Why don't you just change the color of the circles, that would be the best way then you can use whatdotcolor. |
Author: | pr0xiler [ Thu Jun 02, 2005 10:40 am ] |
Post subject: | |
StarGateSG-1 wrote: Why don't you just change the color of the circles, that would be the best way then you can use whatdotcolor.
I have like 50 different dots, and it would look like crap all different colors. |