Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 20007, Labeled edit control with validation and alignment properties

by Andre Wolff Email: Anonymous


TExtEditCtrl adds input validation methods and properties to an edit-box. Supported input: integer, real, currency, letters, filename, folder name, hexadecimal number. Also text alignment.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 4.0  to 7.0 819 downloads
Copyright: Commercial use requires permission


Size: 21,555 bytes
Updated on Sun, 22 Aug 2004 14:02:25 GMT
Originally uploaded on Wed, 14 May 2003 06:04:22 GMT
SHA1 Hash: ABDDDD5DD79C044B831B64440EB087151EFC61CC
MD5 Hash: 4466CA994F56B9D538A110E218D54DCE

    Explore the files in this upload

Description
Reliable handling of user input via an edit-box requires code in the edit box events OnEnter, OnKeyDown, OnkeyPress and OnExit. The final result should be checked by a validation procedure which depends on the type of information in the edit-box.

Component TExtEditCtrl is created to handle these events and the validation, but it allows also to align the text in the edit-box to the left, center or right side of the control.

The input is checked by a validation procedure if the edit-box loses focus. If the input is not valid, a message box with an error message and an 'OK' and 'Cancel' button is displayed. If the user clicks the 'OK' button, the focus goes back to the edit-box with the wrong input and the user can correct the input. If the user clicks 'Cancel' (UnDo), the wrong input is replaced by the original text.

TExtEditCtrl has been derived from the base class TlabeledEdit (Delphi 6-7) but can also be derived from TEdit (Delphi 4-7).

For more information read the enclosed file ReadMe.htm which you also can view at http://www.andrewolff.nl/Download_UK/index.htm

2004-08-22: Handling of empty fields improved and documentation improved and updated as html file.

For more information, see www.andrewolff.nl

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03