Garry's Mod Wiki

DCheckBox

Description

The DCheckBox is a checkbox. It allows you to get a boolean value from the user (true/false - yes/no)

Parent

Derives from DPanel.

Example

Creates a DCheckBox and sets its initial value.

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

Page Links


Special Pages


Wikis

?

Render Time: 26ms

DB GetPage 2
Generate Html 1
SaveChanges (1) 8
Render Body 0
Render Sidebar 12