![]() |
CXTMaskEditT not virtual enough |
Post Reply
|
| Author | |
JohnCrenshaw
Groupie
Joined: 08 September 2006 Status: Offline Points: 65 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTMaskEditT not virtual enoughPosted: 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.
|
|
![]() |
|
Simon HB9DRV
Senior Member
Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
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!
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |