WebRadioGroup
From Xojo Documentation
(Redirected from RadioGroup)
Allows you to add a set of radio buttons to a web page. You can group the buttons in any number of columns and rows.
Events | ||||||
|
Methods | ||||||||||||
|
Notes
By default, the WebRadioGroup control creates a group with two rows and one column, but this is easily changed via the Horizontal and InitialValue properties in the Inspector.
To determine which radiobutton was pressed, use the ValueChanged event.
The SelectedIndex property and SelectedItem method can be used to identify which WebRadioButton was selected.
You can access the individual buttons using the ItemAt method and SelectedIndex property.
Sample Code
This code selects a radio button, which has the effect of de-selecting all the other radio buttons in the group:
Use SelectedIndex in the ValueChanged event handler to determine which radio button was pressed.
For example, the following code in the ValueChanged event handler will display a message based upon which radio button is pressed:
Case 0 // Row 1
MessageBox("You clicked the top button.")
Case 1 // Row 2
MessageBox("You clicked the bottom button.")
End Select
See Also
WebRadioButton class; WebCheckBox, WebPopupMenu controls