stickleprojects Level: Moderator

 Registered: 09-09-2002 Posts: 937
|
Re: How to draw and intercat with polygons in Microsoft Access
Hi
Its not straightforward, i'm afraid.
Shapes don't have mouse events, so you need to track them all yourself.
Ie.
You have an array of shapes that you draw in the paint event
In the mouseup, you get the coords of where the user clicked, then work out which shape the user clicked on and react to it.
If you've got some cash, i'd recommend buying one (life is way to short to rewrite this sort of thing).
if your shapes are always rectangles, you could use the drag-n-drop capabilities of vba see this article (http://www.devx.com/vb/Article/8029/1954?pf=true) as the technique is similar.
Hope this helps
Kieron
____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)
|