Password-like edit box using CDXUTEditBox

Started by
3 comments, last by aucian 17 years, 9 months ago
Hello, How can I create an edit box using CDXUTEditBox that would allow me to hide entered text with some character, asterisk maybe? Thanks.
Advertisement
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
------------------------------------ IDLoco Game Studios
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.
Dustin Franklin ( circlesoft :: KBase :: Mystic GD :: ApolloNL )
I see. Well then I guess it has to be built from scratch. Thanks :)

This topic is closed to new replies.

Advertisement