Old 19th October 2011, 14:14   #1
hanenjom
Member
 
Join Date: Apr 2011
Posts: 56
unchecked checkbox

Hi,
can you help me please,

i have this page
[Settings]
NumFields=6
Title=nsDialogs::Create 1018

[Field 1]
Type=RadioButton
Left=42
Top=22
Right=118
Bottom=33
Text=RadioButton1
State=1

[Field 2]
Type=RadioButton
Left=42
Top=40
Right=118
Bottom=51
Text=RadioButton2

[Field 3]
Type=GroupBox
Left=50
Top=60
Right=270
Bottom=124
Text=GroupBox1

[Field 4]
Type=CheckBox
Left=70
Top=70
Right=135
Bottom=80
Text=CheckBox1
State=1
Flags=DISABLED

[Field 5]
Type=CheckBox
Left=71
Top=87
Right=136
Bottom=97
Text=CheckBox2
State=1
Flags=DISABLED

[Field 6]
Type=CheckBox
Left=71
Top=100
Right=136
Bottom=110
Text=CheckBox3
State=1
Flags=DISABLED

when I click on radio button1 I have a disabled checkbox it s ok , but i Want on the some time i will have a unchecked check box please.

Can you help me.
thx.
hanenjom is offline   Reply With Quote
Old 19th October 2011, 21:28   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Please rephrase your question. It is not at all clear what it is you're trying to accomplish.
MSG is offline   Reply With Quote
Old 26th October 2011, 15:28   #3
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
You are using InstallOptions but not nsDialogs, you write "Title=nsDialogs::Create 1018" yet. I don't know whether you how nsDialogs use. However, no matter what you are using, you can send a message to the checkbox to uncheck it depending another checkbox's state.
SendMessage $hwnd_botton ${BM_SETCHECK} ${BST_CHECKED} 0
SendMessage $hwnd_botton ${BM_SETCHECK} ${BST_UNCHECKED} 0
You can read the handle of controls from ini file's HWND value of each field after the dialog has been initialized, and them using SendMessage to control them.

Contact me: 137729898@qq.com
jiake 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