Jump to content
  • Advertisement
Sign in to follow this  
aucian

Password-like edit box using CDXUTEditBox

This topic is 4351 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!