Skip to content
OliverF edited this page Feb 25, 2014 · 1 revision

Parents the control to another control.

Syntax

nil control:SetParent(control parent)

Returns

  1. nil

Arguments

  1. control parent
    Control to which this control is parented

Example

local button = RSAS.GUI.Control("button", "myButtonID")
local label = RSAS.GUI.Control("label", "myLabelID")
label:SetParent(button) --add label to button as a child

Clone this wiki locally