Garry's Mod Wiki

RadioButton

Description

This is used internally - although you're able to use it you probably shouldn't.
We advise against using this. It may be changed or removed in a future update.

Currently there are no functions to retrieve checked state of a Radio Button, and their visuals are seemingly broken.

Parent

Derives methods, etc not listed on this page from Panel.

Example

local window = vgui.Create( "DFrame" ) window:SetSize( 600, 400 ) window:Center() window:MakePopup() for _, v in ipairs( { "test1", "test2", "test3" } ) do local rb = window:Add( "RadioButton" ) rb:Dock( TOP ) rb:SetText( v ) end