DPanelList.GetPadding

From GMod Wiki

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



Examples

DescriptionGets the padding on a panel.
Used onNewerClient.png
Code
 local DermaPanel = vgui.Create("DPanelList")
 DermaPanel:SetSize(200, 200);
 DermaPanel:SetPos(10, 10);
 DermaPanel:SetPadding(5);
 
 Msg("Spacing: " DermaPanel:GetPadding() .. "\n");
Outputpadding: 5


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox