From Xojo Documentation
|You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!|
New in 2021r3
Displays a group of radio buttons.
This code in the Opening event handler populates a radio group and sets the initial value to the current month:
For Each m As String In months
Var rb As New DesktopRadioButton(m)
Var d As New DateTime
Me.SelectedIndex = d.Month - 1 // Select current month
Examine the value of SelectedIndex in the SelectionChanged event handler to determine which item was selected.
This code adds an item to PopupMenu:
This code populates the RowTag identifier with a sequence number:
Then compare recID to another Integer.
Changing the selected item in a RadioGroup:
Displaying the RowTag of the selected menu item: