Garry's Mod Wiki

DForm:AddItem

void DForm:AddItem( Panel left, Panel right = nil )

Description

Adds one or two items to the DForm. If this method is called with only one argument, it is added to the bottom of the form. If two arguments are passed, they are placed side-by-side at the bottom of the form.

Internally, this function is used by the various DForm functions to, for example, add labels to the left of buttons.

Arguments

1 Panel left
Left-hand element to add to the DForm.
2 Panel right = nil
Right-hand element to add to the DForm.

Page Links


Special Pages


Wikis

?

Render Time: 24ms

Session 0
DB GetPage 2
Generate Html 1
SaveChanges 8
Render Body 0
Render Sidebar 12