borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (import fields from XML file to ACCESS)Next Topic (Reverse Chart) New Topic New Poll Post Reply
AndreaVB Forum : VB General : How to draw and intercat with polygons in Microsoft Access
Poster Message
sebastian
Level: Trainee

Registered: 26-11-2007
Posts: 1

icon How to draw and intercat with polygons in Microsoft Access

I need to draw polygons in a Microsoft acess3003 form, so that the user can interact with them (polygons should generate events).  Microsoft have a "shape" library, but I don't know how to integrate it in Access. Anyone can help me ? Thanks  

26-11-2007 at 10:46 PM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 937
icon 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)

03-01-2008 at 12:02 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : How to draw and intercat with polygons in Microsoft Access
Previous Topic (import fields from XML file to ACCESS)Next Topic (Reverse Chart) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder