Print Page | Close Window

CXTPMaskEdit mandatory fields?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=24554
Printed Date: 22 February 2025 at 8:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPMaskEdit mandatory fields?
Posted By: matsjansson
Subject: CXTPMaskEdit mandatory fields?
Date Posted: 21 February 2025 at 3:06am
Hi

I have a mask for my control which is ">> / >>" with the literal "__ / __"

This will mostly do what I want.
One thing that I have not found out is to force the user to enter letters instead of the underscore?
Now the user can exit the editing with the input "AB / __", which does not work at all for me. 
I need them to enter all letters.
Can I somehow force this behaviour?

I now have made a check for this after in OnEndEdit notification, but the only thing I can at that moment is to notify the user with a messagebox and restore the text as it was before editing.

/Mats



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net