Create a dialog-themed window for text

This snippet creates a dialog-themed window that you can use to display some text

Snippet

MyFrame = CreateFrame("Frame")
MyFrame:ClearAllPoints()
MyFrame:SetBackdrop(StaticPopup1:GetBackdrop())
MyFrame:SetHeight(300)
MyFrame:SetWidth(300)

MyFrame.text = MyFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal")
MyFrame.text:SetAllPoints()
MyFrame.text:SetText("YOUR HELP TEXT HERE")
MyFrame:SetPoint("CENTER", 0, 0)
Posted by jnwhiteh at Thu, 30 Apr 2009 11:14:18 +0000