home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
entryf.zip
/
POOR.DOC
< prev
Wrap
Text File
|
1994-05-23
|
1KB
|
26 lines
Poor Mans formatted entry fields
The following examples implement some primative entry field types
that are somewhat usefull but also serve as examples on using handlers.
the EUEntryField would be better as a keyboard handler but IBM doesn't let us
change the typed in char. I hope someone changes this soon.
/*******************************************************************
*
* Post validation - IFocusHandler::loseFocus
*
*******************************************************************/
EDate - enhance an entry field by doing a post-validation and reformat of a date field.
EPhone - enhance an entry field by doing a post-validation and reformat of a phone
EUEntryField - enchances an entry field by doing a post-conversion to upper case
/*******************************************************************
*
* keyboard handler to handle numeric only fields
*
*******************************************************************/
ENumeric - intercepts keys and validates they are numeric else beeps