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

@ -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: