🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #700

Input verification using edit controls...

#700
From: gardner
Date: Wed, 21 Nov 1990 17:22
26 lines
1369 bytes
I am designing an accounting package which uses an edit control in a dialog
box to get phone numbers, ssn numbers, dates, etc.  I have been scanning 
through my manuals and all the magazines I could find to see how WINDOWS could
verify that the user has entered the data in a correct format.  What I would
like to have is an edit control with a visible "mask" which the user just
fills in... i.e.

			+-------------------------------+
			|	                        |
			|        +--------------+       |
			| PHONE: |(   )    -    |       |
			|        +--------------+       |
                        |                               |
                        +-------------------------------+

where the box enclosing the phone number is an edit control.

Are there some generic formatting characters that allow input verification
using edit controls?  Do I have to resort to writing my own custom control
class to do input verification and formatting?

I'd appreciate any help!

				Thanks,
					Mike Gardner
					Summit Software Engineering 
Technical Details
Message-ID: <2102.274a7171@iccgcc.decnet.ab.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!ukma!usenet.ins.cwru.edu!abvax!iccgcc!gardner

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!ukma!usenet.ins.cwru.edu!abvax!iccgcc!gardner
From: gardner@iccgcc.decnet.ab.com
Newsgroups: comp.windows.ms.programmer
Subject: Input verification using edit controls...
Message-ID: <2102.274a7171@iccgcc.decnet.ab.com>
Date: 21 Nov 90 17:22:08 GMT
Lines: 26