Added FirstRadioButton and AdditionalRadioButton controls for better GROUP and TABSTOP handling

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7250 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2021-01-16 18:42:39 +00:00
parent 3e58c76935
commit 79df77fa82
2 changed files with 12 additions and 2 deletions

View file

@ -238,7 +238,7 @@ Link,
Button,
GroupBox,
CheckBox,
RadioButton,
RadioButton (FirstRadioButton and AdditionalRadioButton),
Text,
MLText,
Password,
@ -549,7 +549,7 @@ StrCmp $0 "" ...
<li>${NSD_CreateButton}</li>
<li>${NSD_CreateGroupBox}</li>
<li>${NSD_CreateCheckBox}</li>
<li>${NSD_CreateRadioButton}</li>
<li>${NSD_CreateRadioButton} <small>(${NSD_CreateFirstRadioButton} and ${NSD_CreateAdditionalRadioButton})</small></li>
<li>${NSD_CreateText}</li>
<li>${NSD_CreateMLText}</li>
<li>${NSD_CreatePassword}</li>

View file

@ -291,6 +291,14 @@ Header file for creating custom installer pages with nsDialogs
!define __NSD_RadioButton_STYLE ${DEFAULT_STYLES}|${WS_TABSTOP}|${BS_TEXT}|${BS_VCENTER}|${BS_AUTORADIOBUTTON}|${BS_MULTILINE}
!define __NSD_RadioButton_EXSTYLE 0
!define __NSD_FirstRadioButton_CLASS ${__NSD_RadioButton_CLASS}
!define __NSD_FirstRadioButton_STYLE ${DEFAULT_STYLES}|${WS_TABSTOP}|${WS_GROUP}|${BS_TEXT}|${BS_VCENTER}|${BS_AUTORADIOBUTTON}|${BS_MULTILINE}
!define __NSD_FirstRadioButton_EXSTYLE ${__NSD_RadioButton_EXSTYLE}
!define __NSD_AdditionalRadioButton_CLASS ${__NSD_RadioButton_CLASS}
!define __NSD_AdditionalRadioButton_STYLE ${DEFAULT_STYLES}|${BS_TEXT}|${BS_VCENTER}|${BS_AUTORADIOBUTTON}|${BS_MULTILINE}
!define __NSD_AdditionalRadioButton_EXSTYLE ${__NSD_RadioButton_EXSTYLE}
!define __NSD_Text_CLASS EDIT
!define __NSD_Text_STYLE ${DEFAULT_STYLES}|${WS_TABSTOP}|${ES_AUTOHSCROLL}
!define __NSD_Text_EXSTYLE ${WS_EX_WINDOWEDGE}|${WS_EX_CLIENTEDGE}
@ -406,6 +414,8 @@ Header file for creating custom installer pages with nsDialogs
!insertmacro __NSD_DefineControl GroupBox
!insertmacro __NSD_DefineControl CheckBox
!insertmacro __NSD_DefineControl RadioButton
!insertmacro __NSD_DefineControl FirstRadioButton
!insertmacro __NSD_DefineControl AdditionalRadioButton
!insertmacro __NSD_DefineControl Text
!insertmacro __NSD_DefineControl MLText
!insertmacro __NSD_DefineControl Password