| Subject: | Resize text members |
|---|---|
| From: | "mikem75" <webforumsuser@xxxxxxxxxxxxxx> |
| Date: | Thu, 24 Jul 2008 15:47:29 +0000 (UTC) |
| Newsgroups: | macromedia.director.lingo |
Hello - I am attempting to put text members on top of buttons at run time in a kiosk application I'm building. The concept is I call a database, grab a number of names and place them on buttons. The problem is the names are all of various lengths which makes some of the names too large for the buttons. I would like to test for the width of the text (given that different fonts have different kearning tables). Once I know the width of the text I can then adjust the character spacing or fontsize of the text to ensure it fits within the button. Does anyone know how to test for the width of text members. There is a .width property, but that doesn't seem to give me what I need. I've tested that and all the results are the same for members which are quite different in the number of characters and the width on the buttons. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Exporting a .dir file and importing to a .fla, Dean Utian |
|---|---|
| Next by Date: | Re: Resize text members, Andrew Morton |
| Previous by Thread: | Text Input - Entering and Checking, andyulrika_is_back |
| Next by Thread: | Re: Resize text members, Andrew Morton |
| Indexes: | [Date] [Thread] [Top] [All Lists] |