Garry's Mod Wiki

Revision Difference

RadioButton#527961

<panel> <parent>Panel</parent> <description> <internal></internal> <deprecated></deprecated> Currently there are no functions to retrieve checked state of a Radio Button, and their visuals are seemingly broken. <internal></internal> <deprecated></deprecated> Currently there are no functions to retrieve checked state of a Radio Button, and their visuals are seemingly broken. </description> <hooks></hooks> </panel> </panel> <example> <example> <description>Example usage</description> <code> local window = vgui.Create( "DFrame" ) window:SetSize( 600, 400 ) window:Center() window:MakePopup() for k, v in pairs( { "test1", "test2", "test3" } ) do for _, v in ipairs( { "test1", "test2", "test3" } ) do local rb = window:Add( "RadioButton" ) rb:Dock( TOP ) rb:SetText( v ) end </code> </example> </example>