Panel/Add

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Bug)
(This is fixed.)
 
Line 3: Line 3:
 
|Parent=Panel
 
|Parent=Panel
 
|Description=Adds the specified object to the panel.
 
|Description=Adds the specified object to the panel.
 
{{Bug|Pull=1482|Creating a DFrame or a panel that inherits from DFrame will not drag/resize correctly when created through this function.}}
 
 
|Realm=Client
 
|Realm=Client
 
|IsClass=Yes
 
|IsClass=Yes

Latest revision as of 19:40, 9 December 2018

 Panel:Add( )

Description

Adds the specified object to the panel.

Arguments

Panel object

The panel to be added (parented). Can also be:

  • string Class Name - creates panel with the specified name and adds it to the panel.
  • table PANEL table - creates a panel from table and adds it to the panel.

Returns

Panel

New panel
Personal tools
Navigation