Text box for passwords


#1

Hello ,

do we have any text box for passwords, when user types his/her passwords the box will show just starts?

Thanks


#2

You mean “stars”, I guess?.. If so, yes - there’s a TextBox method to set a password character that it’ll display. Can’t remember the method name offhand, but should be very easy to find.


#3

I don’t think you should be able to cut/copy out off a password box.

[code]1427c1427
< if (selection.isNotEmpty())

if (selection.isNotEmpty() && passwordCharacter == 0)

1573,1574c1573,1574
< m.addItem (1, TRANS(“cut”), writable);
< m.addItem (2, TRANS(“copy”), selectionStart < selectionEnd);

        m.addItem (1, TRANS("cut"), writable && passwordCharacter == 0);
        m.addItem (2, TRANS("copy"), selectionStart < selectionEnd && passwordCharacter == 0);[/code]

#4

Ah yes. I think there’s some logic elsewhere that stops it actually performing the copy, but yes, those options shouldn’t be on the menu!