|
 |
|
NOTE: This Design document is subject to change at any time. |
Syntax: <RADIOGROUP property-list>group items</RADIOGROUP>
Creates a group of radio buttons. Radio buttons are options where only one in a group is allowed to be checked at a time. Checking a radio item will cause all other items in the group to be unchecked.
Items can be added with the ItemList property, or by placing a GROUPITEM within the group. For example, to create the image shown at the top of this article, you can use the code:
Code: |
<RADIOGROUP ItemList='Item 1|Item 2|Item 3'/> |
or the equivalent code:
Code: |
<RADIOGROUP>
<GROUPITEM Caption='Item 1'/>
<GROUPITEM Caption='Item 2'/>
<GROUPITEM Caption='Item 3'/>
</RADIOGROUP> |
The advantage of the second method is that you can also specify the Value property of each item. Normally items have a value starting at zero based upon their position in the list. By assigning your own value to each item you can control the overall value of the RadioGroup component. This allows the RadioGroup to return any value, including complex objects. |
|