Old 7th October 2011, 14:39   #1
xbarns
Senior Member
 
xbarns's Avatar
 
Join Date: Aug 2007
Location: Frankfurt, Germany
Posts: 187
nsDialogs - set cursor to end of text in text box

Hi all,

i have an existing textbox that has some text written in it, i use ${NSD_SetFocus} to set the focus to the textbox but the cursor is placed at the beginning, is there a way to place the cursor at the end of the text?

Thanks
x
xbarns is offline   Reply With Quote
Old 7th October 2011, 15:05   #2
xbarns
Senior Member
 
xbarns's Avatar
 
Join Date: Aug 2007
Location: Frankfurt, Germany
Posts: 187
Talking

Hahaa i found out myself



${NSD_SetFocus} HWND
${NSD_GetText} HWND $0
StrLen $1 $0
SendMessage HWND ${EM_SETSEL} $1 $1
xbarns 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