DPanelList.GetSpacing

From GMod Wiki

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



Examples

DescriptionGets 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);
 
 Msg("Spacing: " DermaPanel:GetSpacing() .. "\n");
OutputSpacing: 5


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox