TheLoon


I know Foxpro has never been great at graphics. I've only seen it smack a bitmap on the window. Are there any (preferably free) .DLLs, code or libraries that enhance VFP 6 graphic capabilities



Re: Know of any graphics libraries for VFP 6?

CDFAUX


A good option is to use MSExcel per automation.
It is extremely simple of programming and the users know it well.
The bad thing is that this demands the installation of MSExcel, but my experience indicates that ALL THE PC has Word and Excel...

Here an example goes.
Forgive me this code, it is very simple and something dirty (mainly when filling the data) but it serves as example.
And you can simply generate it recording a macro of Excel.





Re: Know of any graphics libraries for VFP 6?

CChalom

You can also use GDI+ with VFP6.

The class GPIMAGE2 brings a wrapper class to gdiplus.dll that allows to use most of the GDI+ functions. Visit the link below, download the source, and run the samples available in the "EXAMPLES" folder. There you'll find a simple class that permits to create some interesting charts, drawings, reports with vertical labels, etc.

http://cchalom.sites.uol.com.br/GPIMAGE/index.htm

If you're not using Windows XP, you'll need to download the distributable version. There's a good explanation on GPIMAGE's website.

Here you'll find some other samples, at the "FAQS" page.

http://cchalom.sites.uol.com.br/GPIMAGE/faqs.htm

Hope this helps

Cesar






Re: Know of any graphics libraries for VFP 6?

TheLoon

GDI+ looks like the best options yet. I've noticed VFP 8 has a "DECLARE - DLL Command" - I wonder if it's in VFP 6. If it is I bet I can use a graphics .DLL from another language like VB.

I did a search and turned up a discontinued DirectX wrapper for Foxpro.. a shame.

dni:  Thanks for the input!  I guess my next step is to look into GDI+ and learn how to call .DLLs.




Re: Know of any graphics libraries for VFP 6?

dni

You have DECLARE DLL in version6 for DLL writen 32-bit environement, and call it as any vfp function.

If you need to acces 16-bit DLL you may call it using Foxtools.dll

You also may call API'S:

DECLARE INTEGER GetActiveWindow IN win32api
MESSAGEBOX(STR(GetActiveWindow()))





Re: Know of any graphics libraries for VFP 6?

CChalom

 TheLoon wrote:
GDI+ looks like the best options yet. I've noticed VFP 8 has a "DECLARE - DLL Command" - I wonder if it's in VFP 6. If it is I bet I can use a graphics .DLL from another language like VB.

I did a search and turned up a discontinued DirectX wrapper for Foxpro.. a shame.

dni:  Thanks for the input!  I guess my next step is to look into GDI+ and learn how to call .DLLs.

The Loon,

The link  I provided gives you a class that wraps GDI+ for all VFP versions. With GPIMAGE2 you won't need to declare any API, just use the class methods ! The class is engaged to call the DLL, not you !

Have a look at the samples, there you'll find lots of them !

http://cchalom.sites.uol.com.br/GPIMAGE/index.htm

http://cchalom.sites.uol.com.br/GPIMAGE/faqs.htm