|
|
#1 |
|
Junior Member
Join Date: Sep 2007
Posts: 6
|
Hi,
I did a search here, but couldn't find anything to assist me. I've created a custom form using nsDialogs, and everything is working well. The only thing is I don't understand how to retrieve the value of a CheckBox. Funcion GetTrustedConnection ... ... ${NSD_CreateCheckbox} 75 160 100% 8u "Trusted Connection" Pop $TRUSTEDCONNECTION GetFunctionAddress $0 OnTrustedConnection nsDialogs::OnClick /NOUNLOAD $TRUSTEDCONNECTION $0 nsDialogs::Show FunctionEnd Function OnTrustedConnection ${NSD_GetText} $TRUSTEDCONNECTION $0 ${If} $0 == "1" StrCpy $5 "Yes" ${Else} StrCpy $5 "No" ${EndIf} FunctionEnd thank you, Johnny |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Send BM_GETSTATE to get the state of the checkbox.
code: NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Sep 2007
Posts: 6
|
thank you very much, greatly appreciated
Johnny |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|