PAL Date Dialog Item
--------------------

Author: John McDonald

This zip archive contains source code for adding a date
item to the Dialog capabilities of PAL. The date item
consists of a 11 character edit field that
will allow a user to enter a date, or, by pressing
the down arrow, select a date from a calendar display.
Dates can be entered in either DD/MM/YY or MM/DD/YY
format under program control. The returned date will
be validated.

When a users presses the down arrow while in the
date edit field, a one month calendar will appear
in a pop-up window attached to the field. The program
can provide a default date to be highlighted. If no
default is provided, the current date will be
highlighted. The user can use the four direction
arrows to select a date, and PgUp and PgDn to move
between months.

In order to avoid Year 2000 issues and not force
users to enter 4 digit dates, the item assumes that
any year greater than 70 is in the 1900s and any
year less than 70 is in the 2000s.

This archive contains the following files:


README.TXT	This file
DATE.TXT	Standard PAL documentation
DHSTNDRD.C	Dialog source file
IHDATE.C	Date item source file
PALDLG.H	Dialog include file
SRCLIST		PAL generation source file

To install the date item, you must copy the files
into their appropriate directories and re-build
PAL. It is recommended that you save copies
of the original files before replacing them.
The following tables shows where each file goes:

File		Location
------------	-------------------------------
DHSTNDRD.C	\PAL\SRC\DIALOG
IHDATE.C	\PAL\SRC\DIALOG
PALDLG.H	\PAL\SRC\INC
SRCLIST		\PAL\SRC
DATE.TXT	\PAL\DOCS


Note: You can edit the standard doc files
(\PAL\SRC\DIALOG\DIALOG.DOC)
to include the contents of date.txt directly
if you wish to have all of your documentation
consolidated.

Once you have copied the files into the
correct directories, you must rebuild PAL.
This can be done as follows:

A:\> cd \PAL\SRC
A:\PAL\SRC> PM

Note: The above example assumes that your
PAL directory is on your A: drive.

Please note that the date item has only been
tested with Borland Turbo C v2.0 (since that's
the only compiler I have). However, all code
was written to conform to PAL standards and as
such, should work with any PAL supported
compiler.

If you have any questions on the date item,
please contact me at johnmcd@ix.netcom.com.
For any other PAL related issues, please contact
the PAL authors directly.

John McDonald

