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:
parent
cde1bec3d3
commit
361dbff6bc
4 changed files with 18 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue