|
|
#1 |
|
Senior Member
Join Date: Oct 2005
Posts: 189
|
SetCaretPos system call
I'm trying to set the caret position within the text field of a custom page. My call is within the SetFocus function.
code: This is the same order of calls that MSDN uses in their example. My return value ($1) is 1, which means that the call succeeded, according to the docs. But, no matter what values I pass in, the caret remains at the beginning of the text field when it is given focus. Has anybody used this successfully? If so, how do you know what to pass in for the x/y coordinates? For example, how would you set the position to the end of the string in a text field? |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Jul 2004
Posts: 671
|
Set caret position to the end of the text:
Test.nsi code: Test.ini code: Last edited by Instructor; 11th March 2006 at 03:20. |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Oct 2005
Posts: 189
|
Thanks Instructor! It works perfectly
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|