views:

1896

answers:

3

Inputbox:

answer:=Inputbox('a','b','c');

works good, but I'm looking for a masked one, like a password box where you only see little stars instead of the typed characters.

+2  A: 

I don't think that Delphi includes such a thing out of the box. Maybe you can find one at http://www.torry.net/ or elsewhere in the net. Otherwise just write one yourself - shouldn't be that hard. :-) You can even look at the source code if you have a "big enough" Delphi version.

Uli.

Ulrich Gerhardt
+6  A: 

InputBox calls the InputQuery function in Dialogs, which creates the form dynamically. You could always make a copy of this function and change the TEdit's PasswordChar property.

Bruce McGee
+7  A: 

You can send a Windows message to the edit control created by InputBox, that will flag the edit control for password entry. Here's the link. Good luck!

overslacked