Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   unchecked checkbox (http://forums.winamp.com/showthread.php?t=336263)

hanenjom 19th October 2011 14:14

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.

MSG 19th October 2011 21:28

Please rephrase your question. It is not at all clear what it is you're trying to accomplish.

jiake 26th October 2011 15:28

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.


All times are GMT. The time now is 17:20.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.