Shareware Floating Calendar

by Dr. Peter Wayne

Many developers have asked for a floating calendar. A floating calendar is a calendar that can be moved around on the screen, that stays open after a date is selected, and whose date can be read by an Alpha Five form or Xbasic script. Here is an example of the floating calendar. Notice that in the first figure the calendar is in the upper right-hand corner and "July 7, 2003" is selected. This date also appears on the form:

Floating Calender

Fig. 1. Floating calendar in upper right-hand corner.

Now, with focus on the calendar, I use the up-arrow key to move up to June 30th. The entire calendar resynchronizes to June 30th and the date changes on the accompanying form as well:

Change of date

Fig. 2. Change of date.

The calendar can be moved around by the mouse:

Fig. 3. The calendar can be repositioned.

The calendar is "sticky". If you close the form and open it again, the calendar remembers its previous position.

You can also use the calendar with an Xdialog:

Calendar with an Xdialog

Fig. 4. Calendar with Xdialog.

The calendar functions are provided as shareware, not freeware. Illustrations are given in the accompanying database for adding a floating calendar to your forms and Xdialogs. Feel free to download the function and database, but if you use them a nominal fee ($10 for personal use, $25 for commercial use) is requested.

Download the wfloatcal database and addin used in this article.

7/7/2003

Don't forget, we need your feedback to make this site better!

Return to home