Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

FEATURE: PasswordBox (something to set on TextBox?) #119

Open
sinni800 opened this issue Jun 1, 2015 · 2 comments
Open

FEATURE: PasswordBox (something to set on TextBox?) #119

sinni800 opened this issue Jun 1, 2015 · 2 comments

Comments

@sinni800
Copy link

sinni800 commented Jun 1, 2015

A way to have a "password character" that will be typed instead of the actual typed character is a pretty standard feature in every UI toolkit ever.

@knarfrank
Copy link

Would this be done by creating a whole new PasswordBox struct with the same kind of methods as TextBox or just setting a flag within the TextBox and having a visible text value plus an actual text value, then adding the wrapper CreatePasswordBox method within the theme that sets the flag?

@sinni800
Copy link
Author

@knarfrank I presume it would be a property in the TextBox called "PasswordCharacter", a rune which woukd be shown instead of every typed character if it is set not to the unicode null codepoint. I think either the driver or the theme would implement checking for this character (unsure about the logic in the toolkit here) in the drawing routine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants