8

The LA Fox Developer Newsletter
May 1998
Sample Programs (Con’t from page 3)

Push Pins!

AUTHOR: Donaby Henton Straight Arrow Consulting, LLC dhenton@rvlink.com

One of the ideas of Visual Foxpro is graphical representation of data. They don’t call it Visual for nothing. This download allows you to create and position small colored labels on an image called “pushpins.” Each pushpin references a row in a table, and has a click event that can be used to display useful data related to the image. The image will have labels that are ‘live’. Shareware demo. Nice artwork.

Download Pushpin Demo24 K


Documentina Utility

AUTHOR: Hugh Winters World Data worlddata@earthlink.net

A spiffy little utility that lets you grab predefined ‘stuff like document headers and paste it into your typing. You can customize what you want to store for pasting.

Download DocBuilder22 K


Messagebox Builder

AUTHOR: Hugh Wnters
World Data
worlddata@earthlink.net
I can never remember messagebox syntax. This utility builds

the syntax for you, and then you can paste it in. No problem.
Download Messagebox Builder33 K
Hot Ti PS (Con’t from page 4)
place these 3 lines in the lnit event of the grid to have all of those font settings set a runtime.
THIS.SETALL(”FontName”,”Anal”,”Header”)
THIS.SETALL(”BackColor”,RGB(0,0,255),”Header”)
THIS.SETALL(”ForeColor”,RGB(255,255,0),”Header”)

This code will work whether there are 4 columns or 40!

Another use for the SetAll method could be setting the Enabled property for all text boxes to .T. when the Edit button is selected in a toolbar on the form. In the Click event behind the Edit button you could use:

THISFORM.SETALL(”Enabled”, .T.,”TextBox~’)


(Ed. Note: Rod Paddock will be one of the featured speakers at The Second Annual Southern California Visual FoxPro Conference. To find out more, point your browser to http:ll www.mesllc.com/conf98.html. Visit Rod’s website at http:// www.takenote.com.)


Field-Level Help (Con’t from page 6)

Finally, you need the following code in the base class’s LostFocus event:

THISFORM.ShowHelp(”

This ensures that the help text disappears when a non-database control, such as a command button, receives focus.
And that’s all there is to it. Assuming that all your data-entry forms and fields are derived from the appropriate base classes, you don’t need to do anything else. Each time you drop a field on the form, the relevant help panel message will come right along.
About to Release...
Y2K
Announcing the “New” release of Nikao Solutions, Inc.’s Year 2000 Solutions Y2K Fix and Repair tools and FoxPro 2.x Developer’s Tools. The Y2K Fix and Repair tools analyze and report on all places in code that any kind of date manipulation code is present and fixes the screen date fields. The Developer’s Tool Kit includes Project Archiving and Restoration, a “Find/Replace” function for searching entire projects for code.
(Con’t, next column)
Y2K (Con’t from previous column)

Download the Demo version of Y2S at www.asah.com/y2k.

Knowing dates are not getting into databases erroneously is going to become a very big concern among companies trying to bring there apps to Y2K Compliancy. The revolutionary “Date Validation” software from Nikao Solutions will alert companies at the first hint of problems with wrong century dates. Read more about it at www.asah.com/products
Page 8

8