diff --git a/Contrib/InstallOptions/Changelog.txt b/Contrib/InstallOptions/Changelog.txt index 16b565ff..5fd44f1f 100644 --- a/Contrib/InstallOptions/Changelog.txt +++ b/Contrib/InstallOptions/Changelog.txt @@ -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) diff --git a/Contrib/InstallOptions/InstallerOptions.cpp b/Contrib/InstallOptions/InstallerOptions.cpp index d9203470..9ec3e54e 100644 --- a/Contrib/InstallOptions/InstallerOptions.cpp +++ b/Contrib/InstallOptions/InstallerOptions.cpp @@ -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: diff --git a/Examples/Modern UI/ioA.ini b/Examples/Modern UI/ioA.ini index 162f19e7..6643b727 100644 --- a/Examples/Modern UI/ioA.ini +++ b/Examples/Modern UI/ioA.ini @@ -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 \ No newline at end of file +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" \ No newline at end of file diff --git a/Plugins/InstallOptions.dll b/Plugins/InstallOptions.dll index c2a5da58..20b85829 100644 Binary files a/Plugins/InstallOptions.dll and b/Plugins/InstallOptions.dll differ