DCheckBox

From GMod Wiki

Revision as of 20:20, 9 November 2011 by TheFreeman193 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Derma Control: DCheckBox
Parent Class:DSysButton
Subclasses:None
Description:
Simple Checkbox.

Examples

DescriptionCreates a Simple Checkbox
Used onNewerClient.png
Code
local myFrame = vgui.Create("DFrame")
myFrame:SetSize(100,100)
myFrame:Center()
myFrame:SetTitle("DCheckBox")
 
local myCheckBox1 = vgui.Create("DCheckBox", myFrame)
myCheckBox1:SetPos(50,50)
 
local myCheckBox2 = vgui.Create("DCheckBox", myFrame)
myCheckBox2:SetPos(30,50)
myCheckBox2:SetChecked(true)
 
OutputDCheckBox.PNG


Methods

NewerClient.png DCheckBox.SetChecked
NewerClient.png DCheckBox.Think
NewerClient.png DCheckBox.Toggle
NewerClient.png DCheckBox.ApplySchemeSettings
NewerClient.png DCheckBox.Paint
NewerClient.png DCheckBox.SetConVar
NewerClient.png DCheckBox.Init
NewerClient.png DCheckBox.PerformLayout
NewerClient.png DCheckBox.OnChange
NewerClient.png DCheckBox.DoClick
NewerClient.png DCheckBox.GetChecked
NewerClient.png DCheckBox.SetValue

Inherited from DSysButton

NewerClient.png DSysButton.GetChar
NewerClient.png DSysButton.GetType
NewerClient.png DSysButton.SetChar
NewerClient.png DSysButton.SetType

Inherited from DButton

NewerClient.png DButton.SetDrawBackground
NewerClient.png DButton.GetSelected
NewerClient.png DButton.SetDisabled
NewerClient.png DButton.GetDrawBorder
NewerClient.png DButton.IsDown
NewerClient.png DButton.OnMouseReleased
NewerClient.png DButton.GenerateExample
NewerClient.png DButton.SetConsoleCommand
NewerClient.png DButton.DoRightClick
NewerClient.png DButton.SetSelected
NewerClient.png DButton.GetDrawBackground
NewerClient.png DButton.GetDisabled
NewerClient.png DButton.SetDrawBorder
NewerClient.png DButton.OnMousePressed

Inherited from DLabel

NewerClient.png DLabel.OnCursorEntered
NewerClient.png DLabel.GetTextColorHovered
NewerClient.png DLabel.SetAutoStretchVertical
NewerClient.png DLabel.GetColor
NewerClient.png DLabel.SetTextColor
NewerClient.png DLabel.GetTextColor
NewerClient.png DLabel.SetTextColorHovered
NewerClient.png DLabel.GetAutoStretchVertical
NewerClient.png DLabel.OnCursorExited
NewerClient.png DLabel.SetColor

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox