MSFN Forum: alternative Radio Buttons? - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

alternative Radio Buttons? How to disable them vice versa? Rate Topic: -----

#1 User is offline   ladiko 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 10-October 05

Posted 05 May 2008 - 01:46 PM

Hello friends of unattended installations :-)

could someone explain my how to create radio buttons in the way that if i select one, the other ones of the group are automatically disabled? at the moment i can select all radio buttons of a group at the same time, but i want that the user can only choose one type out of all in the group. (see my example below).

by the way i use WIHU since about 1 or 2 hours and it's amazing :-)

[MyProgram]
group = 1

test.eval.0 = selected.1 | selected.2 | selected.3
selected.0 = if.false
description.0 = MyProgram Standalone
command.0 = %WIHU%\MyProgram\App.exe /s /conf="%WIHU%\MyProgram\Standalone.ini"

test.eval.1 = selected.0 | selected.2 | selected.3
selected.1 = if.false
description.1 = MyProgram with IE Toolbar
command.1 = %WIHU%\MyProgram\App.exe /s /conf="%WIHU%\MyProgram\Toolbar.ini"

test.eval.2 = selected.1 | selected.0 | selected.3
selected.2 = if.false
description.2 = MyProgram with a lot of crap
command.2 = %WIHU%\MyProgram\App.exe /s /conf="%WIHU%\MyProgram\Crap.ini"

test.eval.3 = selected.1 | selected.2 | selected.0
selected.3 = if.false
description.3 = MyProgram Full Installation
command.3 = %WIHU%\MyProgram\App.exe /s /conf="%WIHU%\MyProgram\Full.ini"

i thought it should work this way, but it seems to be wrong :-)

This post has been edited by ladiko: 05 May 2008 - 01:59 PM



#2 User is offline   Camarade_Tux 

  • MSFN Addict
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,760
  • Joined: 22-May 05

Posted 05 May 2008 - 02:01 PM

You're right to use group but should use anything else. ;)

Quote

group.x = (0 or 1) If 1, the software subtree will contain option controls instead of checkboxes.

This post has been edited by Camarade_Tux: 05 May 2008 - 02:01 PM


#3 User is offline   ladiko 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 10-October 05

Posted 05 May 2008 - 02:05 PM

could you define "anything else" a little bit more precise?

or what is the sence of the option group? only graphical? :rolleyes:

This post has been edited by ladiko: 05 May 2008 - 02:58 PM


#4 User is offline   Camarade_Tux 

  • MSFN Addict
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,760
  • Joined: 22-May 05

Posted 07 May 2008 - 10:43 AM

Ooops, forgot the "n't" : you shouldn't use anything else. :P

#5 User is offline   ladiko 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 10-October 05

Posted 07 May 2008 - 11:26 AM

ahh ok and how to get it working like a radio control group? if i select one, the others are deselected?

like this --> http://webdev2.sun.com/example/faces/cbrb/...Radiobutton.jsp

#6 User is offline   BenjaminKalytta 

  • Developer
  • PipPipPipPip
  • Group: Members
  • Posts: 609
  • Joined: 08-June 04

Posted 14 May 2008 - 05:21 PM

The bug is fixed now.

#7 User is offline   ladiko 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 10-October 05

Posted 15 May 2008 - 12:18 AM

juhuuu =D

it works!!! thank you, benjamin! :thumbup

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy