Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTMaskEditT not virtual enough
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTMaskEditT not virtual enough

 Post Reply Post Reply
Author
Message
JohnCrenshaw View Drop Down
Groupie
Groupie
Avatar

Joined: 08 September 2006
Status: Offline
Points: 65
Post Options Post Options   Thanks (0) Thanks(0)   Quote JohnCrenshaw Quote  Post ReplyReply Direct Link To This Post Topic: CXTMaskEditT not virtual enough
    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.
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.