GDI+ FFC classes

If you don’t have the GDI+ foundation classes I used in my code below, you should be able to pull them down from the FoxPro site. Sorry I forgot to mention that before.

They’re not yet well-documented, but once you have the general theory behind them, you can just Use The Source, Luke. :-)

Posted by Garrett on August 19th, 2004 in Uncategorized | No Comments

Using GDI+ to change your reports

I just spent way too damned long writing a test to demonstrate the new StringTrimming functionality in Visual FoxPro 9 reports.

In earlier versions, if your text was longer than the box in which it was displayed, it would cut off the text at the end at the last available space, with no indication this had happened. VFP9, though, takes advantage of GDI+’s string formatting features to add ellipses (…) showing that there is missing text.

The default is to add the ellipses at the end of the last visible word, but that isn’t the only option we have. Search for “StringTrimming” in the VFP9 help file for a description of the other behaviors.

Note before running the sample: there is a SUSPEND in the middle. When you hit that, go in to the report that just opened, right-click on “cField”, and turn off the “Stretch with overflow” checkbox. Then save the report and resume. I wasn’t able to find a way to do this that wouldn’t have been way more trouble than it was worth.

Read the rest of this entry »

Posted by Garrett on August 19th, 2004 in Code Sample, Testing, VFP | 1 Comment

DropCash fundraising

Ben at SixLog points at a new service called DropCash. It’s a web app which uses TypeKey and the PayPal APIs to simplify fundraising. As a test, I created a small campaign to raise money for my daughters’ preschool. Check it out!

Posted by Garrett on August 19th, 2004 in Uncategorized | 1 Comment