DHTMLControls

From GMod Wiki

Revision as of 19:57, 23 November 2010 by Cube334 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Derma Control: DHTMLControls
Parent Class:Panel
Subclasses:
Description:
Can be used with a HTML control to add controls such as Back, Forward, Address bar, etc.

Examples

DescriptionCreates a HTML control and then adds a control bar to it.
Used onNewerClient.png
Code
 
local Width, Height = ScrW() * 0.5, ScrH() * 0.5 --Half screen size
 
local HTML = vgui.Create( "HTML" ) --Create the HTML control
HTML:SetSize( Width, Height ) 
HTML:Center() --Center on screen
 
local HTMLControls = vgui.Create( "DHTMLControls", HTML ) --Create the DHTMLControls control
HTMLControls:SetHTML( HTML ) --Add the bar to this HTML control
 
Output


Additional Notes

See also

NewerClient.png HTML

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox