Prev Previous Post   Next Post Next
Old 20th February 2013, 19:49   #1
xliner78
Junior Member
 
Join Date: Jun 2011
Posts: 7
If statement when a radio button is selected

Hello,
I am newbie in NSIS and i don't know how to make in a if statement when a radio button is selected
I have 2 radio buttons. The first button is preselected by default and i want when the second radiobutton is selected to unselect the 1st radio button and do some other code.

Here is my code
code:
${NSD_CreateRadioButton} 40 130 450 40 "Typical installation(recommended)"
Pop $hCtl_sss_RadioButton1
${NSD_AddStyle} $hCtl_sss_RadioButton1 ${WS_GROUP}
SendMessage $hCtl_sss_RadioButton1 ${WM_SETFONT} $hCtl_sss_Font1 0
${NSD_Check} $hCtl_sss_RadioButton1

${NSD_CreateRadioButton} 40 210 450 40 "Custom installation"
Pop $hCtl_sss_RadioButton2
${NSD_AddStyle} $hCtl_sss_RadioButton2 ${WS_GROUP}

SendMessage $hCtl_sss_RadioButton2 ${WM_SETFONT} $hCtl_sss_Font1 0



Thank you all in advance
xliner78 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