Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 23rd April 2019, 15:12   #1
meoit
Member
 
Join Date: Oct 2014
Location: $DESKTOP
Posts: 90
Post How to create 2 RadioButton groups by nsDialogs without affecting each other

Hi all!

When I click to select any RadioButton in Group2 then RadioButton in the Group1 become unchecked.

So, how to create 2 RadioButton groups by nsDialogs without affecting each other ? (on 1 page).

This is my code:

code:

!include "MUI2.nsh"

Page custom BASIC_OPTIONS_Create

!insertmacro MUI_LANGUAGE "English"

Section "Main Section" SECTION1
SectionEnd

Var /GLOBAL Arial_9_Normal
Var /GLOBAL Arial_9_Bold

Function BASIC_OPTIONS_Create
CreateFont $Arial_9_Normal 'Arial' '9.25' '400'
CreateFont $Arial_9_Bold 'Arial' '9.25' '700'
nsDialogs::Create 1044
Pop $1
${If} $1 == error
Abort
${EndIf}
SendMessage $1 ${WM_SETFONT} $Arial_9_Normal 0
${NSD_CreateLabel} 6.58u 43u 320u 10u 'Group1'
Pop $1
SendMessage $1 ${WM_SETFONT} $Arial_9_Bold 0
${NSD_CreateRadioButton} 10u 58u 310u 10u 'Install1'
${NSD_CreateRadioButton} 10u 73u 310u 10u 'Install2'
${NSD_CreateRadioButton} 10u 88u 310u 10u 'Install3'
${NSD_CreateLabel} 6.58u 110u 320u 10u 'Group2'
Pop $1
SendMessage $1 ${WM_SETFONT} $Arial_9_Bold 0
${NSD_CreateRadioButton} 10u 125u 310u 10u 'Get1'
${NSD_CreateRadioButton} 10u 140u 310u 10u 'Get2'
${NSD_CreateRadioButton} 10u 155u 310u 10u 'Get3'
nsDialogs::Show
FunctionEnd

meoit is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump