Links in this post have been updated to link to the VFPX site on CodePlex.
I’ve updated the source code for the Desktop Alerts, and posted to the web site.
Updates include the ability to hide the Close button and Push-Pin button on the alert form, and I made a couple of minor changes to bring back the ‘fade-out’ effect when the alert form releases.
You can get the updated code here.
A single zip file. When unzipped, it should create a single folder named VFPALERT. All files for the project are in the one folder.
I’ve also posted a Sample form, which allows you to select/enter the parameters for an alert and click an ‘Alert Me’ button to view the alert. Very easy to make minor modifications to an alert and quickly see the results.
The download includes a program file named TESTSAMPLE.PRG, which contains three class definitions for “callback” objects. The sample form includes two “pre-defined” alerts and a third one call “Create My Own Alert”. After selecting an alert and setting the values for the parameters, the Alert Me button calls the AlertManager’s Alert() method, runs the Alert’s SetCallback() method (passing in one of the three “callback” objects), then issues the Alert method.
The Sample form also comes with a COMPILED EXE (VFPALERT.EXE). Simply run the EXE with the /regserver switch, then DO FORM pathsample from the VFP Command Window.
Please note: this EXE was compiled with VFP 9 SP1. You will need the VFP 9 runtime files to run the sample. The runtimes are not included with the download.
The sample form and compiled EXE are also available here.
A quick note of SPECIAL THANKS to the Chicago FoxPro Users Group for allowing me to come to their meeting this past Tuesday to talk about the Desktop Alerts. I had a GREAT time talkin’ FoxPro, and enjoyed meeting all of you!
Special Thanks also to Patrick O’Hara for taking my son & I out for some Chicago pizza (and for showing me some fantastic dev tools he’s written) after the meeting.
This post originally appeared on the Foxite Weblogs site.