Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTPMaskEdit mandatory fields?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPMaskEdit mandatory fields?

 Post Reply Post Reply
Author
Message Reverse Sort Order
matsjansson View Drop Down
Groupie
Groupie


Joined: 09 May 2023
Location: Solna
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote matsjansson Quote  Post ReplyReply Direct Link To This Post Topic: CXTPMaskEdit mandatory fields?
    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
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.066 seconds.