Garry's Mod Wiki

Revision Difference

DCheckBox#516728

<panel>⤶ <parent>DButton</parent>⤶ <description>The DCheckBox is a checkbox. It allows you to get a boolean value from the user (true/false - yes/no)</description>⤶ <hooks>|File=lua/vgui/dcheckbox.lua</hooks>⤶ ⤶ </panel>⤶ <panel⤶ |parent=dbutton⤶ |description=the dcheckbox is a checkbox. it allows you to get a boolean value from the user (true/false - yes/no)|hooks=>⤶ <file>lua/vgui/dcheckbox.lua</file>⤶ ⤶ </panel⤶ |parent=dbutton⤶ |description=the dcheckbox is a checkbox. it allows you to get a boolean value from the user (true/false - yes/no)⤶ |hooks=>⤶ <example> <description>Creates a DCheckBox and sets its initial value.</description> <code> local window = vgui.Create( "DFrame" ) window:SetSize( 300, 200 ) window:Center() window:MakePopup() local checkbox = window:Add( "DCheckBox" ) -- Create the checkbox checkbox:SetPos( 25, 50 ) -- Set the position checkbox:SetValue( true ) -- Initial "ticked" value </code> </example>