I am trying to put radio buttons in my skins optins window. I need it that the two options can never be selected at the same time. So if one is selected the other automatically de-selects. I know how to put everythign else in but am at a loss on how to create those radio buttons. I included an example as to what the radio button are. Thanks for any input.
Attachment:radio.JPG (4.68 KB) This file has been downloaded 199 time(s).
Posts: 1366 Reputation: 46
31 / /
Joined: Dec 2007
RE: Radio buttons in SKin options
A common ComboBox control is like this:
code:<Control xsi:type="ComboBoxControl" Id="OptionName">
<Position Top="10" Width="100" Left="10"/>
<Items>
<Item Id="ItemId1">Name of the first item</Item>
<Item Id="ItemId2">Name of the second item</Item>
</Items>
<Help>This text appears when you hover your mouse over the box. It is usually a help text.</Help>
</Control>
What he is trying to do is restrict the user from being able to select a certain range of buttons depending on the value of a radio button. So you guys are sort of missing the point of what hes trying to get at.
From what I know I don't think there is anything like that implemented in the skin system (correct me if I am wrong). So I don't think you will be able to achieve what you are after. You will probably just have to settle for a combobox instead as mentioned already.
This post was edited on 08-24-2008 at 10:19 AM by Willz.
From what I know I don't think there is anything like that implemented in the skin system (correct me if I am wrong)(ZOiD= )So I don't think you will be able to achieve what you are after. You will probably just have to settle for a combobox instead as mentioned already.
I was trying and if I could do it...
Only I have proved it with the "Boolval", with the "Multival" do not try it.
<BoolVal Name="RPsm">
<DispLabel>Mensaje personal</DispLabel>
<DispHelp>Retira/Coloca El mensaje personal de tus contactos</DispHelp>
<Default>true</Default>
</BoolVal>
This is what goes placed in the .xml of your interface
code:<Control xsi:type="RadioControl" Id="RMail">
<Position Top="167" Width="120" Left="39"/>
<Help>Retira/Coloca El Botón Mail</Help>
<Attributes>
<IsNewGroup>false</IsNewGroup>
</Attributes>
<Caption>Boton Mail</Caption>
</Control>
<Control xsi:type="RadioControl" Id="RPsm">
<Position Top="167" Width="120" Left="161"/>
<Help>Retira/Coloca El mensaje personal de tus contactos</Help>
<Caption>Mensaje personal</Caption>
</Control>
</Controls>
yes you can make one, but the point is to be able to make another option not selectable depending on the value of a radio button. That is what I was referring to not being able to be done.
With what you have there you might as well use checkboxes.
This post was edited on 08-26-2008 at 03:38 AM by Willz.
ZOID I already firgured outmost of what you stated. But thanks anyway.
I do have the radio button in there and everythign the way I want it but the actual clicking on one radio and having the other disable at the same time is a buit harder. If I can figure it out I'll let you all know.