Page 1 of 1

Password editbox

Posted: Mon Dec 04, 2017 07:18
by Anasky
Hey all,

Does anyone have a clue how I can hide the password entered? I found the "setMaskCodePoint" on the forum questions, but that seems to be legacy code, and couldn't find anything on the tutorial page of the wiki.

Thanks in advance,
Anasky

Re: Password editbox

Posted: Mon Dec 04, 2017 21:36
by andrewfeng123
I would probably do it like this:

First I check if the entry is a password entry.
-If it is, then I take the input and inject "*" to the system.
-else, inject user's input.

Re: Password editbox

Posted: Tue Dec 05, 2017 06:29
by Ident

Re: Password editbox

Posted: Wed Dec 06, 2017 10:41
by Anasky


Thanks :)

@andrew: I would have done it that way too if CEGUI wouldn't have a system for it, but kind of figured it did ;) Just didn't know where