Reply
Thread Tools Display Modes
Unread 07-16-13, 10:11 AM   #1
Malsomnus
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Apr 2013
Posts: 170
Resizing frame according to given text

I have a frame that displays strings. Is there a simple way to know how big the frame must be to accommodate a given string (with a specific font, of course)?
__________________
SanityCheck - Never again find yourself tanking Garrosh Hellscream in a wedding dress and a fishing rod!

Remember, every time you post a comment on an add-on, a kitten gets its wings!
Malsomnus is offline   Reply With Quote
Unread 07-16-13, 11:16 AM   #2
semlar
A Molten Giant
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 600
You could anchor the frame to the string using SetPoint.
semlar is online now   Reply With Quote
Unread 07-16-13, 01:47 PM   #3
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,191
This recent discussion was about just that.
Dridzt is offline   Reply With Quote
Unread 07-16-13, 01:58 PM   #4
Malsomnus
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Apr 2013
Posts: 170
I wonder how I missed that. Thanks
__________________
SanityCheck - Never again find yourself tanking Garrosh Hellscream in a wedding dress and a fishing rod!

Remember, every time you post a comment on an add-on, a kitten gets its wings!
Malsomnus is offline   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » Lua/XML Help » Resizing frame according to given text

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off