GroupID||doc136539

September 20, 2022

Format

RadioButton.GroupID

Describe

The group ID of the radio box. Only one radio box in the same group can be checked at the same time.

Code Example

image.png

-- create layout window
local APIRootWindow = UI:CreateGUIWindow("API")

--Set the window to the root node of the UI
APIRootWindow.Parent = UI.Root

--Get the RadioButton control for testing according to the name
local radioBtn = APIRootWindow.APIRadioButton

--Set the group ID of the radio button control
radioBtn.GroupID = 2