Category:DLabel

From Garry's Mod
Jump to: navigation, search

Contents

DescriptionPanelPage

A standard Derma text label. A lot of this panels functionality is a base for button elements, such as DButton

Inherited Functions

Inherits the following functions from Label and its parents up to 3 levels deep:


Examples

Example

Creates a DLabel.

local Panel = vgui.Create( "DFrame" )
Panel:SetSize( 200, 200 )
Panel:Center()
Panel:MakePopup()

local DLabel = vgui.Create( "DLabel", Panel )
DLabel:SetPos( 40, 40 )
DLabel:SetText( "Hello, world!" )

Output:

DLabel.png

Methods

Personal tools
Navigation