Old 12th November 2007, 08:36   #1
lovespy108
Member
 
Join Date: Sep 2007
Posts: 63
About RadioButton?

I add two Radiobuttons(named A,B) on my self-defined page.
Question:
1. I want A is checked at the default state.
2. I want the setup can judge which button is checked when it is leaving the page.

Thanks to reply!!!!!!!!
lovespy108 is offline   Reply With Quote
Old 12th November 2007, 14:01   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Use InstallOptions or nsDialogs, both of which provide the functionality that you need.

Stu
Afrow UK is offline   Reply With Quote
Old 13th November 2007, 03:13   #3
lovespy108
Member
 
Join Date: Sep 2007
Posts: 63
I am blunt.Please give me detail answer.Thanks!
lovespy108 is offline   Reply With Quote
Old 13th November 2007, 07:09   #4
cheryll
Junior Member
 
Join Date: Aug 2007
Location: Ruhrpott, Germany
Posts: 37
Install Options Readme

1) To set a radiobutton, simply use
!insertmacro INSTALLOPTIONS_WRITE "IniFile" "Field Nr." "STATE" "1"
befor displaying the page. "1" being checked, "0" being unchecked.

2) To check the state of a radiobutton, use
!insertmacro INSTALLOPTIONS_READ $Var "IniFile" "Field Nr." "STATE"
in the leave-function of your page.
cheryll is offline   Reply With Quote
Reply
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