Skip to content
⌘ NSIS Forum Archive

Nsis password field

4 posts

Vankov#

Nsis password field

Hello everybody,

I`m looking for simple form with password field and username,but i cann`t find it in samples.
The form is :

label("username :") - textfield
label("passowrd :") - password field

Any idea?
Vankov#
Yes,I found it,but when i added more than one component from kind(for example 2 text fields) on the menu is only the lastest from existing kind ???
Here is my code :

Function nsDialogsPage

nsDialogs::Create 1018
Pop $Dialog

${If} $Dialog == error
Abort
${EndIf}

${NSD_CreateLabel} 0 0 100% 12u "User name :"
Pop $LabelUser

${NSD_CreateText} 0 13u 20% 13u ""
Pop $TextUser

${NSD_CreateLabel} 0 0 100% 12u "Password :"
Pop $LabelPassword

${NSD_CreatePassword} 0 13u 20% 13u ""
Pop $TextPassword


nsDialogs::Show

FunctionEnd

So the result on display is :

Password :
" "

Any idea?