Quantcast
WoWInterface - View Single Post - Need Help! Crop Text...
View Single Post
01-20-14, 01:08 PM   #5
Mr.Dio
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 5
Originally Posted by Malsomnus View Post
I'm almost certain you can achieve that by using :SetWidth().
This Is not work
Originally Posted by jaliborc View Post
I think you will need to parent it to a ScrollFrame. There might be other solutions, but I think this is the onyl one.
Thx! Great works!

scrollframe = CreateFrame("ScrollFrame")
scrollframe:SetSize(50, 20)
scrollframe:SetPoint("CENTER")

content = CreateFrame("Frame", nil, scrollframe)
content:SetSize(200, 20)
content:SetPoint("CENTER")
text = content:CreateFontString("PlayerHealthPTextFrame", "OVERLAY")
text:SetAllPoints()
text:SetFont("Fonts\\FRIZQT__.TTF", 8, "OUTLINE")
text:SetText("Interface\\GLUES\\MainMenu\\Glues-BlizzardLogo")
text:SetWordWrap(false)
scrollframe:SetScrollChild(content)
  Reply With Quote