DLabel

From GMod Wiki

Revision as of 19:57, 29 October 2011 by Grocel (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Derma Control: DLabel
Parent Class:DPanel
Subclasses:DButton
Description:
A standard text label

Examples

DescriptionCreate some text
Used onNewerClient.png
Code
// myParent = a panel
local myLabel = vgui.Create("DLabel", myParent)
myLabel:SetPos(1,1) // Position
myLabel:SetColor(Color(255,255,255,255)) // Color
myLabel:SetFont("default")
myLabel:SetText("I Love Gmod") // Text
myLabel:SizeToContents() // make the control the same size as the text.
 
Outputlabelyk1.png


Methods

NewerClient.png DLabel.ApplySchemeSettings
NewerClient.png DLabel.GenerateExample
NewerClient.png DLabel.GetAutoStretchVertical
NewerClient.png DLabel.GetColor
NewerClient.png DLabel.GetText
NewerClient.png DLabel.GetTextColor
NewerClient.png DLabel.GetTextColorHovered
NewerClient.png DLabel.Init
NewerClient.png DLabel.OnCursorEntered
NewerClient.png DLabel.OnCursorExited
NewerClient.png DLabel.Paint
NewerClient.png DLabel.PerformLayout
NewerClient.png DLabel.SetAutoStretchVertical
NewerClient.png DLabel.SetColor
NewerClient.png DLabel.SetFont
NewerClient.png DLabel.SetText
NewerClient.png DLabel.SetTextColor
NewerClient.png DLabel.SetTextColorHovered
NewerClient.png DLabel.SizeToContents
NewerClient.png DLabel.SetWrap
NewerClient.png DLabel.SetExpensiveShadow

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox