Welcome to Foxite.COM Community Weblog Sign in | Join | Help

Vector Drawings with Visual Foxpro and GDI+

Last October my friend Cesar Chalom asked me to prepare a sample project utilizing some pure GDI+ code in order to demonstrate it in the Brazilian's Conference participants. I kept my promise and I did prepare a simple Visual Foxpro demo project with "drawing" functionality. Since then I have received many emails from participants of the conference asking to publish this demo project.
So here it is... In this laconic project you will see the amazing capabilities of the VFP handling large complex mathematical calculations in "a speed of light" . In this demo project you will find also, two classes for trigonometric and polygon calculations. Very useful indeed. If your project needs any kind of 2D drawing don't look elsewhere.

 

Click inside a polygon and voila!. Since you have finished designing your window you can  export your shape into an XML file!

Tip: You can browse the .\Files\Shapes.dbf and modify the points of the existing polygons. Don't hesitate to add new polygons (like the previous ones) but be careful to have closed shapes.

Dowload Project

Any feedback on this demo project would be greatly appreciated.


VFP Can Do Anything You Can Imagine...

 

Published Tuesday, April 24, 2007 12:29 PM by vassilag

Comments

# re: Vector Drawings with Visual Foxpro and GDI+

Tuesday, April 24, 2007 3:32 PM by Cesar Chalom
Hey Vassilis,
Thanks very much for publishing this project. As I didn't have your specific aproval to share these contents, I kept them with me during these times.
Your code is a great source of inspiration.
Thanks again for sharing !
Regards
Cesar

# re: Vector Drawings with Visual Foxpro and GDI+

Thursday, June 21, 2007 4:47 PM by RGBean
I'm getting the following errors when I compile this project.
Visual Class Library f:\vfp90\xdraw22\appsource\_mydraw.vcx has the following errors:
   Unknown DLOOKUP - Undefined

Program f:\vfp90\xdraw22\appsource\drawkernel.prg has the following errors:
   Unknown MYVAL - Undefined

Rick
Anonymous comments are disabled