sjn78 Posted December 4, 2003 Posted December 4, 2003 I have a few hexagon shaped regions on my form that lie next to each other. Similar to a honeycomb structure. How do I detect using the mouse x and y what region I have clicked in. I will run trough a loop that create points for the 6 corners of the hexagon to give it its bounds. It would be simple enough if it was a rectangle, but this is a little different. I saw on another post that you can use a Contains() method to see if it is in there. But since I am here asking this question, it is obvious I can't find how to do it. Any help would be great. Quote
Hamburger1984 Posted December 4, 2003 Posted December 4, 2003 see attachment - should answer your question very good... Hope this helps! Andreashexagons.zip Quote
sjn78 Posted December 5, 2003 Author Posted December 5, 2003 Thats just what I need. Just have to now implement it into my project. Thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.