Frame:SetParent()

From Riftui Wiki

Jump to: navigation, search

Changes the parent of the frame.

Contents

Signature

frame:SetParent(parent)

Parameters

parent (frame or context) - The frame or context that will be the new parent of the frame.

Return Value

None

Example

local context = UI.CreateContext("SampleContext")
local frame = UI.CreateFrame("Frame", "SampleFrame", context)
-- Set the parent to frame --
local sample = UI.CreateFrame("Frame", "Example", frame)
-- Switch the parent to context --
sample:SetParent(context)
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox