Old 24th February 2011, 15:04   #1
Vankov
Junior Member
 
Join Date: Jun 2009
Posts: 46
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 is offline   Reply With Quote
Old 24th February 2011, 15:58   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
nsDialogs

Stu
Afrow UK is offline   Reply With Quote
Old 24th February 2011, 16:24   #3
Vankov
Junior Member
 
Join Date: Jun 2009
Posts: 46
Post

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?
Vankov is offline   Reply With Quote
Old 24th February 2011, 16:53   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You have given them the same coordinates.

Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump