Sign in to follow this  
aucian

Password-like edit box using CDXUTEditBox

Recommended Posts

Hello, How can I create an edit box using CDXUTEditBox that would allow me to hide entered text with some character, asterisk maybe? Thanks.

Share this post


Link to post
Share on other sites
i have not used the CDXUTEditBox, but from the top of my head, you could capture the key pressed event and get the content of the edit box, then copy it to a string that will bet your buffer and then clear the edit box and add the number of * you want ( you could get the length of the string buffer and that many * )...

hope that helps

Share this post


Link to post
Share on other sites
Yes I thought of going down that road, however I was wondering if there's a more direct way of doing it...

Share this post


Link to post
Share on other sites
Quote:
Original post by aucian
Yes I thought of going down that road, however I was wondering if there's a more direct way of doing it...

You could also inherit a new class an make a CDXUTPasswordBox or something like that. The internals would probably be similar to that which idloco proposed, but it might be a little bit cleaner. Or you could always just change your local copy of the source.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this