Is there a way to toggle a radiobutton's state based on the state of a second radiobutton?
I have two radiobuttons, one to allow the user a single image as the homescreen background, another to set up a multiimage control
Functionally these reset each other's values and they are working as intended. I would like to however, provide a visual indication of which one is activated
So in short: radiobutton A is checked, radiobutton B is unchecked.
toggling radiobutton state
Jeroen
Skilled Skinner Joined: Feb 2008 Reputation: 4 Location: The Netherlands |
2013-04-07 13:11
Post: #1
|
| find quote |
toiva
Posting Freak Posts: 817 Joined: Aug 2008 Reputation: 14 |
2013-04-07 13:43
Post: #2
You send 2 onclicks, the normal one and the second one with an onclick condition that checks if the other one is toggled and sends the onclick if it is?
|
| find quote |
Hitcher
Skilled Skinner Joined: Aug 2007 Reputation: 67 Location: Eastleigh, UK |
2013-04-07 13:50
Post: #3
Use
Code: SubString(Control.GetLabel(BUTTON_ID),*)![]() |
| find quote |
`Black
Skilled Skinner Joined: Apr 2009 Reputation: 49 Location: Germany |
2013-04-07 14:58
Post: #4
It's fairly simple:
Button a: <onclick>Skin.ToggleSetting(setting_a)</onclick> <onclick>Skin.Reset(setting_b)</onclick> Button b: <onclick>Skin.ToggleSetting(setting_b)</onclick> <onclick>Skin.Reset(setting_a)</onclick> The second onclick can also have a condition, e.g. for button a it would be condition="Skin.HasSetting(setting_b)".
(This post was last modified: 2013-04-07 14:59 by `Black.)
|
| find quote |
Jeroen
Skilled Skinner Joined: Feb 2008 Reputation: 4 Location: The Netherlands |
2013-04-11 09:33
Post: #5
Thanks guys, I'm a little rusty
|
| find quote |

![[Image: xchQLzN.png]](http://i.imgur.com/xchQLzN.png)
![[Image: sig_zps3af3b48e.jpg]](http://i620.photobucket.com/albums/tt289/Arcanthur/Celestium/sig_zps3af3b48e.jpg)
![[Image: xp1080.png]](http://www.planet-ira.de/wallpaper/xp1080.png)
Search
Help