Winamp & Shoutcast Forums

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

hohausfn 17th April 2009 08:26

Installoptions -Radiobutton
 
Hello,

i have a new Problem. I want to creat a custom page.
My Ini-File:
code:

; Ini file generated by the HM NIS Edit IO designer.
[Settings]
NumFields=4

[Field 1]
Type=Groupbox
Left=25
Right=266
Top=22
Bottom=84

[Field 2]
Type=Label
Text=bla bla bla
Left=33
Right=153
Top=35
Bottom=70

[Field 3]
Type=RadioButton
Text=als Dienst
Left=166
Right=240
Top=35
Bottom=46
Flags=GROUP
State=1

[Field 4]
Type=RadioButton
Text=als Anwendung
Left=166
Right=240
Top=54
Bottom=64
State=0



My Problem is now, that NO Radiobutton is Selected as default ... how can i set my Field 3 as Selected??

Thanks for your help.

Anders 17th April 2009 09:38

state is the correct way, and it works fine for me, it is selected

hohausfn 17th April 2009 09:42

how do you call your ini-file?
i do it like this:
code:
StrCpy $0 $PLUGINSDIR\io.ini
Call CreateDialogFromINI



at the installation the state is 0 ...

Comperio 17th April 2009 18:35

CreateDialogFromINI is an nsDialogs pluigin, which is different from the InstallOptions plugin. (For proper use of InstallOptions, refer to the InstallOptions readme file.)

The FAQ section of nsDialogs says this:
Quote:

nsDialogs.nsh contains a function called CreateDialogFromINI that can create nsDialogs' dialog from an INI file. It can handle every type of control InstallOptions supports, but doesn't handle the flags or notification yet. Examples\nsDialogs\InstallOptions.nsi shows a usage example of this function.


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

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.