Revision Difference
DLabelURL#553484
<panel>
<parent>URLLabel</parent>
<realm>Client and Menu</realm>
<description>
Underlined link label without a DoClick function. When a valid URL is set and the label is clicked, it will open a browser window and navigate to the address.
This panel uses <page>gui.OpenURL</page> internally and its restrictions apply.
</description>
<overrides>⤶
<page>PANEL:ApplySchemeSettings</page>⤶
</overrides>⤶
</panel>
<example>
<description>Creates a DLabelURL that opens the wiki when clicked.</description>
<code>
local frame = vgui.Create( "DFrame" )
frame:SetSize(400,400)
frame:SetTitle("Test panel")
frame:SetSize( 400, 400 )
frame:SetTitle( "Test panel" )
frame:Center()
frame:MakePopup()
local lbl = vgui.Create( "DLabelURL", frame )
lbl:SetPos(50, 50)
lbl:SetSize(100, 50)
lbl:SetColor(Color(255,255,255,255))
lbl:SetText("I Love Gmod")
lbl:SetURL("http://steamcommunity.com/groups/glua")
lbl:SetPos( 50, 50 )
lbl:SetSize( 100, 50 )
lbl:SetColor( Color( 255, 255, 255, 255 ) )
lbl:SetText( "I Love Gmod" )
lbl:SetURL( "http://steamcommunity.com/groups/glua" )
</code>
<output><image src="dlabelurl.png"/></output>
⤶
</example>⤶
⤶
⤶
# Undocumented Methods ⤶
* <page>DLabelURL:GetAutoStretchVertical</page>⤶
* <page>DLabelURL:SetAutoStretchVertical</page>⤶
* <page>DLabelURL:UpdateColours</page>⤶
</example>