Added MULTILINE support for edit box, better tab order between ReqFile, DirReq and it's browse button
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2626 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
397234a5bd
commit
8270d8bdca
7 changed files with 150 additions and 18 deletions
|
@ -394,7 +394,7 @@ numbers from 1 to NumFields. Each Field section can contain the following values
|
|||
<td class="righttable">Add this flag to the first control of a group
|
||||
of controls to group them. Grouping controls allows you to create multiple
|
||||
groups of radio button and makes keyboard navigation using arrow keys
|
||||
easier.</td></tr>
|
||||
easier.</td></tr>
|
||||
<tr>
|
||||
<td class="righttable">NOTABSTOP</td>
|
||||
<td class="righttable">Do not stop on the control when the user pressed
|
||||
|
@ -455,6 +455,50 @@ value of a Field using ReadINIStr:</p>
|
|||
<pre class="margin">
|
||||
ReadINIStr $R0 "$PLUGINSDIR\test.ini" "Field 1" "State"
|
||||
</pre>
|
||||
<p class="text"> Important Note:</p>
|
||||
<p class="text"> For Multiline edit
|
||||
boxe's the output "State" comes with "\r\n" if text as more
|
||||
than one line and is your responsiblity to convert it inside script to
|
||||
"$\r$\n" if needed! example macro:</p>
|
||||
<pre class="margin">NORMALIZE_CRCF VALUE
|
||||
push $1 ; Index
|
||||
push $2 ; Output char by char
|
||||
push $3 ; Output char by char next
|
||||
push $4 ; Text Accumulator
|
||||
|
||||
StrCpy $1 "0"
|
||||
DONEXT:
|
||||
StrCpy $2 ${VALUE} 1 $1
|
||||
IntOp $1 $1 + 1
|
||||
StrCpy $3 ${VALUE} 1 $1
|
||||
StrCmp $3 "" EOT
|
||||
StrCmp $2 "\" 0 NORMAL_CHAR
|
||||
StrCmp $3 "r" FOUND_CR
|
||||
StrCmp $3 "n" 0 NORMAL_CHAR
|
||||
;FOUND_LF:
|
||||
StrCpy $4 "$4$\r"
|
||||
IntOp $1 $1 + 1
|
||||
goto DONEXT
|
||||
|
||||
FOUND_CR:
|
||||
StrCpy $4 "$4$\n"
|
||||
IntOp $1 $1 + 1
|
||||
goto DONEXT
|
||||
|
||||
NORMAL_CHAR:
|
||||
StrCpy $4 "$4$2"
|
||||
goto DONEXT
|
||||
|
||||
EOT:
|
||||
StrCpy ${VALUE} $4
|
||||
pop $4
|
||||
pop $3
|
||||
pop $2
|
||||
pop $1
|
||||
|
||||
!macroend
|
||||
</pre>
|
||||
<pre class="margin"> </pre>
|
||||
<p class="subheader">Validate the input</p>
|
||||
<p class="text">If you want to validate the input on the page,
|
||||
for example, you want to check whether the user has filled in
|
||||
|
@ -535,6 +579,15 @@ FunctionEnd
|
|||
</pre>
|
||||
<p class="header">Version history</p>
|
||||
<ul>
|
||||
<li>DLL version 2.2 (6/10/2003)
|
||||
<ul>
|
||||
<li>\r\n converts to newline in Multiline edit box</li>
|
||||
<li>Support for multiline edit box</li>
|
||||
<li>Better tab order in DirRequest and FileRequest</li>
|
||||
<li>Minor fixes</li>
|
||||
</ul></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li>DLL version 2.1 (3/15/2003)
|
||||
<ul>
|
||||
<li>\r\n converts to newline in both label Text and ValidateText</li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue