READONLY in text box

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2631 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
ramon18 2003-06-11 23:57:24 +00:00
parent cde1bec3d3
commit 361dbff6bc
4 changed files with 18 additions and 3 deletions

View file

@ -2,6 +2,7 @@ DLL version 2.2 (6/10/2003)
* \r\n converts to newline in Multiline edit box
* Support for multiline edit box
* Better tab order in DirRequest and FileRequest
* Added READONLY option to text box
* Minor fixes
DLL version 2.1 (3/15/2003)

View file

@ -93,6 +93,7 @@ char *STRDUP(const char *c)
#define FLAG_WANTRETURN 0x00100000
#define FLAG_VSCROLL 0x00200000
#define FLAG_HSCROLL 0x00400000
#define FLAG_READONLY 0x00800000
struct TableEntry {
char *pszName;
@ -544,7 +545,8 @@ bool ReadSettings(void) {
{ "MULTILINE", FLAG_MULTILINE },
{ "VSCROLL", FLAG_VSCROLL },
{ "HSCROLL", FLAG_HSCROLL },
{ "WANTRETURN", FLAG_WANTRETURN },
{ "WANTRETURN", FLAG_WANTRETURN },
{ "READONLY", FLAG_READONLY },
{ NULL, 0 }
};
@ -922,6 +924,9 @@ int createCfgDlg()
dwStyle |= WS_VSCROLL;
if (pFields[nIdx].nFlags & FLAG_HSCROLL)
dwStyle |= WS_HSCROLL;
if (pFields[nIdx].nFlags & FLAG_READONLY)
dwStyle |= ES_READONLY
;
title = pFields[nIdx].pszState;
break;
case FIELD_COMBOBOX:

View file

@ -1,5 +1,5 @@
[Settings]
NumFields=1
NumFields=2
[Field 1]
Type=label
@ -7,4 +7,13 @@ Text=Install Options Page A
Left=0
Right=-1
Top=0
Bottom=10
Bottom=10
[Field 2]
Type=text
Left=0
Right=-1
Top=20
Bottom=100
flags=MULTILINE|VSCROLL|READONLY
State="Description:\r\n\r\n1 - Show custom page A (where you are now)\r\n2 - Show the components page\r\n3 - Show custom page B\r\n4 - Show directory page\r\n5 - Show custom page C\r\n6 - Show installation progress"

Binary file not shown.