DHTMLControls

From GMod Wiki

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