THIS IS FOR DELPHI 3/4 (maybe 5) ONLY!!! 

Changes 2.1:
 Some small bugfixes, modified some hacked parts of the code to be more 
 standard pascal, so this should be easy moved to D5...
 Wanted to include some new features, BUT i got a baby now and almost no
 spare time...

BugFix 2.02:
 Property-Editor didn't work correct when testing input
 Bug with repeating optional groups:
 the next mask didn't work
 &*7[&,$,;#,;@]*{.&*7[&,$,;#,;@]}[(&*7[&,$,;#,;@]*{.&*7[&,$,;#,;@]})]
  ^ means repeat 0 to 7 times the group [...]

Changes 2.00:
 I put most of the PxMask-code in a class, so it's 
 easier to maintain the code and create components with a PxMask, 
 BUT now the properties changed:
  PxMask is now an CLASS-property NOT a string
  AutoFill, AutoValidate, RaiseInputError, Mask, 
  ErrorMessage are now properties of that class.
  So you'll have to change your project-source, sorry for the inconvenience...

Copyright  1997-99 Dieter Nth
email      : dNoeth@gmx.de
version    : 2.1
date       : 10.08.1999
description:

 Implements Paradox-style Inputmasks based on sourcecode from Borland's
 BP70 VALIDATE.PAS Unit. I don't know, why they dropped it from VCL :-(


files :
 dnGlobal.pas	some global vars
 dnUtil.pas	some utility functions
 dnPxReg.pas	Registers components
 dnPxMask.pas	components TPxMaskEdit/TPxComboBox
 dnPxGrid.pas	component TPxGrid
 dnPxProp.pas	property-editor for Paradox-masks
 dnDBUtil.pas	some DB-utility functions
 dnDBPxM.pas	data-aware components TDBPxEdit/TDBPxComboBox
 dnDBPxG.pas	data-aware component TDBPxGrid
 dnPxFlds.pas	enhanced TFields with Paradox-mask support
 dnPxFlds.*	include files used by dnPxFlds.pas
 dnPxTbl.pas	enhanced TTable with Paradox-mask support

 English.pxd	english sample masks
 German.pxd	german sample masks
 dnPxCnst.pas	Resourcestrings

 \En\dnPxCnst.pas	english Resourcestrings
 \En\dnPxProp.dfm	english dfm-file

 \De\dnPxCnst.pas	german Resourcestrings
 \De\dnPxProp.dfm	german dfm-file

 \DDExpand\DDExpand3/4.exe	Program to modify a BDE DataDictionary 
				to include PxMask attributes (D3/D4)
		   
 \Example\		project1 example files
 \Example\vendors.pxm	some example masks used by project1 
			(copy to DBDEMOS-alias directory)

usage:
 simply add dnPxReg to your library, recompile it and you'll find
 a new tab (PxMask) on your component palette (and please exit/reenter Delphi, 
 because it's Fields Editor has problems with the new TPx...Field types, if it 
 was opened in this session before)

 there's no help file (if anyone wants to write one???), 
 have a look at the interface sections for (a bit) more information...



SOME INFORMATIONS...

A Paradox mask acts as a template that formats the value you enter in a field.

You can use these characters in a picture string:

Character	Stands for
#		Any digit (0-9)

?		Any letter (A-Z, a-z, including international, e.g. german , french )

&		Any letter (converted to uppercase)

~		Any letter (converted to lowercase)

@		Any character

!		Any character (converted to uppercase)

;		(semicolon) Escape character: Interpret the next character as a literal, 
		not as a special picture-string character.

*		Any number of repeats of the following character. 
		For instance *& means convert any number of characters to uppercase. 
		To specify a specific number of times, follow the * with a number.  
		For instance, to specify exactly 5 numbers in a row, you would use *5{#}
		To specify from 0 to 5 numbers in a row, you would use *5[#]

[###]		Optional operator: three digits or none

{a,b,c}		Grouping operator: a, b, or c

If you use any other (visible) character in a picture string different 
from those listed above, it is treated as a constant. When the end-user 
is entering a value in a field with a picture mask that contains constant 
values, and comes to a point at which a constant is specified, the constant 
is automatically entered. This feature can be toggled via the AutoFill property, 
which is TRUE by default.

If you create a picture validity check with Database Desktop, this does not reformat 
existing data to match the picture nor validate existing data to check that it matches.

Standard TFields are enhanced to include a PxMask (e.g. TStringField --> TPxStringField)
If you use TPx...Fields with PxMasks, you may store/load the masks:
  design mode: in a INI-file with the extended context menu of any TTable.
  runtime: with functions dnPxFlds.LoadPxMasksFromIni/StorePxMasksToIni

If you use Borland's DataDictionary, you may use DDExpand.exe to modify a DD to include
PxMask properties.


This source is Freeware:
You're free to use this component in any software you write. If you use this unit,
you're under no obligation to mention any copyrights for the use of the component
or my name (although you're allowed to do so if you like).
However, you are not allowed to:
- include these components in a commercial library of Delphi components.
- redistribute this source code as shareware under your name.
You're free to modify this source code to suit your needs.
If you find any bugs or make significant changes to this component,
please email me: dNoeth@gmx.de

Users of this source code must accept this
DISCLAIMER OF WARRANTY: THIS SOURCE CODE IS SUPPLIED AS IS.
THE AUTHOR DISCLAIMS ALL WARRANTIES, EXPRESSED OR IMPLIED  INCLUDING,
WITHOUT LIMITATIONS THE WARRANTIES OF MERCHANTABILITY AND OF FITNESS FOR ANY PURPOSE.
THE AUTHOR ASSUMES NO LIABILITY FOR DAMAGED, DIRECT OR CONSEQUENTIAL,
WHICH MAY RESULT FROM THE USE OF THIS SOURCE CODE.
