Password editbox

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Anasky
Not too shy to talk
Not too shy to talk
Posts: 38
Joined: Mon Sep 25, 2017 21:34

Password editbox

Postby Anasky » Mon Dec 04, 2017 07:18

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

andrewfeng123
Just popping in
Just popping in
Posts: 14
Joined: Sat Sep 02, 2017 20:28

Re: Password editbox

Postby andrewfeng123 » Mon Dec 04, 2017 21:36

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.

User avatar
Ident
CEGUI Team
Posts: 1836
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Password editbox

Postby Ident » Tue Dec 05, 2017 06:29

CrazyEddie: "I don't like GUIs"

Anasky
Not too shy to talk
Not too shy to talk
Posts: 38
Joined: Mon Sep 25, 2017 21:34

Re: Password editbox

Postby Anasky » Wed Dec 06, 2017 10:41



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


Return to “Help”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest