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 * \r\n converts to newline in Multiline edit box
* Support for multiline edit box * Support for multiline edit box
* Better tab order in DirRequest and FileRequest * Better tab order in DirRequest and FileRequest
* Added READONLY option to text box
* Minor fixes * Minor fixes
DLL version 2.1 (3/15/2003) DLL version 2.1 (3/15/2003)

View file

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

View file

@ -1,5 +1,5 @@
[Settings] [Settings]
NumFields=1 NumFields=2
[Field 1] [Field 1]
Type=label Type=label
@ -8,3 +8,12 @@ Left=0
Right=-1 Right=-1
Top=0 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.