Garry's Mod Wiki

Revision Difference

DLabel#517345

<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>⤶ <output><image src="DLabel.png"/></output>⤶ </example> # Methods * <page>SetIsMenu</page> * <page>GetIsMenu</page> * <page>SetDrawBackground</page> * <page>GetDrawBackground</page> * <page>GetPaintBackground</page> * <page>SetPaintBackground</page>