Delphi InputBox for password entry?

后端 未结 5 1552
面向向阳花
面向向阳花 2021-01-04 02:08

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

5条回答
  •  忘掉有多难
    2021-01-04 03:13

    You can use InputQuery instead of InputBox. When the TRUE argument is set, password field will be masked.

    InputQuery('Authenticate', 'Password:',TRUE, value);     
    

    Some resource here; http://lazarus-ccr.sourceforge.net/docs/lcl/dialogs/inputquery.html

提交回复
热议问题