Drawing on forms

  • Thread starter Thread starter Clint Liezert
  • Start date Start date
C

Clint Liezert

I would like to be able to enter coordinates in a data sheet and have them
displayed in a "plotted" format on perhaps a subform. In other words, I
would like to enter coordinates and have a cross-section plotted as I enter
the data. I did this in the past using "GWBASIC" but once the Windows
environment came about I lost that ability. Is there any relatively easy
way to attempt this?
 
You are into an area in which I am not well versed; however, I do have a
suggestion you might consider and investigate the details. Rather than
trying to do the drawings on a form; consider using a chart. Then, instead
of manipulating the drawing objects, create the data necessary to drive the
chart.
 
Access forms and controls do not expose a drawing surface. In stadard Visual
Basic you would use a PictureBox control as it exposes a handle to a
standard Device Context(hDC) but unfortunately Access does not contain a
PictureBox control.
One solution to your issue is 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.
 
Back
Top