Password-like edit box using CDXUTEditBox
Hello,
How can I create an edit box using CDXUTEditBox that would allow me to hide entered text with some character, asterisk maybe? Thanks.
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
hope that helps
Yes I thought of going down that road, however I was wondering if there's a more direct way of doing it...
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement