Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Map symbols
Message
From
06/06/2002 05:03:43
 
 
To
06/06/2002 04:54:45
Denis Filer
University of Oxford
United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00665311
Message ID:
00665316
Views:
19
Hi!

Instead of playing around the VFP native control, just open the device Content (DC) of the VFP form window by using Windows API functions and use WIndows API functions to draw the image this way. I think it will work much quicker, take much less memory and will have much better quality.

I can send you a simple code sample, if you need it. Though you will have to learn a lot of Windows API functions - how to draw using them (all of them are very well docummented in MSDN, and I learned them using MSD only ;).

The disadvantage of this approach is only that each time Windows consider your form should be repainted, the image should be re-drawn again, when with VFP controls VFP will do this for you (because controls are on the form). This is a single disadvantage though, and each time such kind of drawing is needed I use WIndows API functions most of the time.



>I am preparing a scattergram module to plot x/y coordinates from a DBF.
>The program sets point properties bsed on values in COL, SYM, size, etc. fields in the DBF. Each point is plotted using addobject() and this works very well, even with large files. I have been experimenting with using LABEL and IMAGE controls for the points. The main difficulty I have is with the SYMBOLS. The question: Is there a way to use images (or shapes?) as in e.g. small triangles or squares where I can adjust the size and colour of the points? Thanks.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform