P.HTML:StatusChanged

From GMod Wiki

Jump to: navigation, search
Function
Syntax P.html"indexa1c8.html" title="String">String Status )
Description:
This function is called when an HTML Panel wants to change the status bar text - for example to display the URL an anchor tag links to
Returns: nil
In Object: HTML
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=P.HTML:StatusChanged]P.HTML:StatusChanged [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionWhen the user hovers over a link on this page, the target of that link will be sent to the console
Used onNewerClient.png
Code
pHTML = vgui.Create("HTML", EventManager.Panel)
pHTML:SetSize( 300,500 );
pHTML:OpenURL("http://m.gmail.com")
function pHTML:StatusChanged(text)
	Msg(text.."\n")
end
OutputThe URL of the anchor tag target the user has hovered over
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox