
July 18th, 2008, 09:42 AM
|
 |
Business Analyst
|
|
Join Date: Mar 2004
Location: The 'Ville
|
|
Detect mouse click in irregular area
I want to capture a mouse click on a PictureBox and perform one action if it is in area A but a different action if it is in area B. Unfortunately the shape is not a rectangle or circle. It will be more or less a semi-circle. I don't want to actually draw this semi-circle, just be able to tell whether or not the click is in the given area using some kind of coordinate system.
I know how to capture a mouse click in general, just need help with the specific area part.
Well, now that I think about it, this is really pretty similar to an old-school image map hyperlink in HTML!
Any ideas?
Thanks!
__________________
Discontent is the first necessity of progress. - Edison
Last edited by mateoc15 : July 18th, 2008 at 09:48 AM.
|