Drawing tools

  • Thread starter Thread starter Rene
  • Start date Start date
R

Rene

Hello group,

I need to display a polygon in a form, if possible in a report also, based
on points in a table.

I've looked at GDI: CreatePolygonRgn, PtInRegion functions which perform the
calculations I want with the data (ie. determine if a point lies inside a
polygon).

Now I'd like to represent the polygon/point graphically. Are tools
available to do this from within Access? Do I need a special 'picture'
control? Are there code samples?

What I need seems to exist, but only outside the Access/VBA umbrella - or so
my search on the net has revealed.

Thanx!

René
Montreal
 
You can use my VBPictureBox class here:
http://www.lebans.com/imageclass.htm
ImageClass has been replaced by the PictureBoxA97 project. A standard
Image control is wrapped within a class to allow the control to resemble
the standard Visual Basic PictureBox control. Simple drawing methods are
directly supported as is Text output with rotation. A handle to a Device
Context is exposed to allow the developer to use the full range of
Graphic API's. Also supports Screen Grabs, Copy to Clipboard and Save
Image control to a disk Bitmap file. Here is the Access 2000 version,
PictureBoxA2K.zip
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
"Rene" <[email protected]>
wrote in message news: said:
I need to display a polygon in a form,
if possible in a report also,
based on points in a table.

I've looked at GDI: CreatePolygonRgn, PtInRegion functions
which perform the calculations I want with the data
(ie. determine if a point lies inside a polygon).

Now I'd like to represent the polygon/point graphically.
Are tools available to do this from within Access?
Do I need a special 'picture' control? Are there code samples?

What I need seems to exist, but only outside the Access/VBA
umbrella - or so my search on the net has revealed.

Rene,

You may want to look at our MetaDraw control.
MetaDraw may be used on an Access Form and will provide
support for both of your requirements.

a) creating drawings / diagrams
Your drawings may consist of polygons
as well as other shapes, text and images.
You can display drawings within a scrollable, zoomable window
You can save the image to a file or database field.
You can copy to clipboard and paste into other applications.

b) Deterimining if a point is within polygon or other
area of image. You can also name each polygon or
other shape and identify which polygon(s) the point
is in.

Note - you indicated a requirement to use this on a Form
and a preference for also being able to use within a Report.
While MetaDraw can only be used on a form ( not a Report)
you can can print from Metadraw from within a Form.

- -

Further information on MetaDraw is available at
www.Bennet-Tec.Com?MetaDraw.htm

Drop me a note and let me know if this is of interest.
I'd be happy to answer any questions you might have.

( Please include a copy of this note with your reply )

Jeff Bennett
(e-mail address removed)

Bennet-Tec Information Systems, Inc
50 Jericho Tpk, Jericho, NY 11753
Phone 516 997 5596, Fax - 5597
WWW.Bennet-Tec.Com

RELIABLE Component Software
and Software Development Services
* TList/Pro * ALLText HT/Pro * MetaDraw *

====================== ======================
 
Back
Top