Selecting rectangle with cursor?

Phantom

New member
Joined
May 27, 2012
Messages
2
Programming Experience
Beginner
Hello, I hope this is the right forum to ask this, if not, I apologise.

I'm a freshman in programming and we have an assignment where we are to create a simple graphical restaurant layout. The user has to be able to draw squares representing tables, circles representing chairs, ... in a panel. This wasn't all to hard to create, however I also want the user to be able to move these objects around by dragging them with the cursor. However, I can't seem to figure out how to find out wether or not your cursor is actually on a piece of furniture or not.

Any help with this would be appreciated.
 
Thank you for your solution. I did have some problems opening it with VS2010, but got it to work eventually ;). Will try to write some new code in my project based on yours tonight.

Thanks again!
 
Back
Top Bottom