Revision Difference
DLabel#517113
<panel>
<parent>Label</parent>
<preview>DLabel_small.png</preview>
<description>A standard Derma text label. A lot of this panels functionality is a base for button elements, such as <page>DButton</page></description>
</panel>
<example>
<description>Creates a DLabel.</description>
<code>
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!" )
</code>
<output></output>
</example>
# Methods
* {{VGUIElementMethodInternal|SetIsMenu}}⤶
* {{VGUIElementMethodInternal|GetIsMenu}}⤶
* {{VGUIElementMethodInternal|SetDrawBackground}}⤶
* {{VGUIElementMethodInternal|GetDrawBackground}}⤶
* {{VGUIElementMethodInternal|GetPaintBackground}}⤶
* {{VGUIElementMethodInternal|SetPaintBackground}}* <page>SetIsMenu</page>⤶
* <page>GetIsMenu</page>⤶
* <page>SetDrawBackground</page>⤶
* <page>GetDrawBackground</page>⤶
* <page>GetPaintBackground</page>⤶
* <page>SetPaintBackground</page>