Lua Code:
--create your frame
--(note, you don't have to give your frame a global name, you can pass nil as the second argument instead)
local frame = CreateFrame("Frame", "MyFrameName", UIParent)
--give your frame a size
frame:SetSize(150, 150)
--give your frame something to look like
frame:SetBackdrop({bgFile = "Path\\to\\texture"})
--give your frame a location on screen
frame:SetPoint("CENTER", UIParent, "CENTER", 0, 0)
--now make a fontstring for your text
--(again, a global name is optional)
local text = frame:CreateFontString("MyFrameText")
--give your text something to look like
text:SetFont("Path\\to\\font", 12, "NORMAL")
--give your text some actual text
text:SetText("This is my message to display.")
http://wowprogramming.com/docs/api/CreateFrame
http://wowprogramming.com/docs/widgets/Region/SetSize
http://wowprogramming.com/docs/widge...me/SetBackdrop
http://wowprogramming.com/docs/widgets/Region/SetPoint
http://wowprogramming.com/docs/widge...eateFontString
http://wowprogramming.com/docs/widge...stance/SetFont
http://wowprogramming.com/docs/widge...String/SetText
Also note that both CreateFrame and CreateFontString may use a template to define looks, font used, etc.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff,
The Tao of Pooh