DPanelList.SetSpacing

From GMod Wiki

Jump to: navigation, search
Function
Syntax DPanelList:SetSpacing( Integer spacing )
Description:
Sets the spacing between objects in a DPanelList.
Returns: nil
In Object: DPanelList
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DPanelList.SetSpacing]DPanelList.SetSpacing [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets the spacing on a panel.
Used onNewerClient.png
Code
 local DermaPanel = vgui.Create("DPanelList")
 DermaPanel:SetSize(200, 200);
 DermaPanel:SetPos(10, 10);
 DermaPanel:SetSpacing(5);
OutputA DPanelList with spacing of 5 pixels between each object inside it.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox