Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pushing the limits?
Message
 
To
09/06/2003 08:38:00
Steven Edge
Soft Solutions Limited
Lagos, Nigeria
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00797918
Message ID:
00809524
Views:
29
FoxPro graphics methods and properties are rather limited. Take a look anyway:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_foxhelp/html/samDraw_Lines_and_Shapes_on_a_Form.asp

Windows GDI functions give much more options. Though it requires a certain amount of programming.

Any window and any printer can be linked to a device context. The device context is like a canvas, you can draw on it using many dozens of GDI functions: lines in different angles, curves, ellipses, rectangles, polygons, irregular shapes using various line and fill styles, print text and draw images stored in bitmap files.

If a graphic object is drawn on a window, it is possible to copy its image to a printer -- actually the image is copied between two device contexts.

Two FoxPro examples demonstrate how to do that:

How to print a FoxPro form
http://www.news2news.com/vfp/?example=158&function=123

How to print a FoxPro form using Enhanced Metafile API functions.
http://www.news2news.com/vfp/?example=406

Not only the whole form but any rectangular area of it can be printed.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform