Password Textbox in a PreferenceData plugin
On 03/01/2018 at 05:19, xxxxxxxx wrote:
we are using a PreferenceData plugin to extend the Preferences with our own settings. Now we need to have a password textbox. You know, the kind of textbox that only shows "*" instead of the actual characters.
I ready from this forum that there is really no way to do that, is that correct? We can only achieve that using GeDialog::SetString(), but in a PreferenceData we don't have access to the underlying GeDialog?
Is there any nifty way to get a password textbox into a custom preference pane?
Thanks in advance for tips & hints!
On 03/01/2018 at 22:12, xxxxxxxx wrote:
a workaround would be to override SetDParameter/GetDParameter to return only "*" characters, not pretty but works reasonably well
On 04/01/2018 at 03:34, xxxxxxxx wrote:
It's not possible to have a password EditText inside a description like a dialog. There's no way to pass EDITTEXT_PASSWORD flag to the underlying EditText.
The workaround given by affa is a solution but has a limitation; the text content can't be updated while it's edited.