View Single Post
05-11-10, 04:08 AM   #22
SuranthianH3
A Murloc Raider
 
SuranthianH3's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 8
BUG: Fontstring

My client doesn't recognize CreateFontString as an existing function. Might want to change it to a CreateFrame instead. Thank you for this wonderful tool. Has helped me learn widgets a lot! :P

EDIT: Nevermind. It is because you did not put its parent BEFORE CreateFontString. It was designed to be used as following:
Code:
Frame:CreateFontString(["name"[,"layer"[,"inheritsFrom"]]])
But you did:
Code:
Frame1.Fontstring1 = CreateFontString("Frame1Fontstring1","OVERLAY",Frame1)
My suggestion is to change what you have to:
Code:
Frame1.Fontstring1 = Frame1:CreateFontString("Frame1Fontstring1","OVERLAY",Frame1)

Last edited by SuranthianH3 : 05-11-10 at 04:24 AM.
  Reply With Quote