Print Page | Close Window

CXTMaskEditT not virtual enough

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=5576
Printed Date: 11 November 2025 at 8:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTMaskEditT not virtual enough
Posted By: JohnCrenshaw
Subject: CXTMaskEditT not virtual enough
Date Posted: 22 November 2006 at 12:41am
There are some big problems with the handling of new characters and such in CXTMaskEditT and there isn't enough control to fix them. Without going into great detail, I'm writing a control to handle date/time. If the user has a full date, and hits delete enough times to kill the month abbreviation, everything stays in place. Typing in a new month after this however pushes the year and time off the edge giving something like "22 Nov ___2 00:61 __". Obviously this is bad.
 
Also, I want to be able to auto complete certain things, for example, if they are on the month and hit 'O', I should be able to determine that the month is 'Oct'. Or if the user in on the day and they hit 5, I should know that this must be the entire day. If I could just override the SetMaskedText function that would almost do it, but it is not virtual. I think that this and quite a number of other functions in this class really ought to be virtual.



Replies:
Posted By: Simon HB9DRV
Date Posted: 22 November 2006 at 3:10am
I would also like to see tyhe following behaviour:

If I define a mask as Address: 000.000.000.000 then when I press . the cursor should move to nect char after the next . (if any), optionally filling in the char(s) over which I have skipped with the default value(s).


-------------
Simon HB9DRV


Posted By: znakeeye
Date Posted: 28 November 2006 at 12:19pm
Speaking of which. Why not make the control prepared for boost::regex? These masks are often insufficient. Regex ftw!



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