Agreed Ted (about the name of the function) !

Results of test:

"Have"  28.000  30.000
"you"   21.000  23.000
"tried" 25.000  27.000
"a"     7.000   9.000
"couple"        38.000  40.000
"more"  29.000  31.000
"tests" 29.000  31.000
"with"  23.000  25.000
"different"     45.000  47.000
"sized" 31.000  33.000
"fonts" 28.000  30.000
"or"    11.000  13.000
"different"     45.000  47.000
"text"  22.000  24.000
"to"    11.000  13.000
"determine"     57.000  59.000
"what"  27.000  29.000
"the"   18.000  20.000
"difference"    55.000  57.000
"is"    10.000  12.000
"between"       48.000  50.000
"the"   18.000  20.000
"widths"        37.000  39.000
"of"    10.000  12.000
"raw"   20.000  22.000
"text"  22.000  24.000
"and"   21.000  23.000
"the"   18.000  20.000
"widths"        37.000  39.000
"of"    10.000  12.000
"the"   18.000  20.000
"containing"    59.000  61.000
"label" 27.000  29.000
"I"     3.000   5.000
"think" 28.000  30.000
"youll" 27.000  29.000
"find"  20.000  22.000
"a"     7.000   9.000
"pattern"       40.000  42.000

----- Original Message -----
From: "Ted Roche" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: 29 September 2008 16:27:49 o'clock (GMT) Europe/London
Subject: Re: Calculating text width

On Mon, Sep 29, 2008 at 11:18 AM, Paul Newton <[EMAIL PROTECTED]> wrote:
>
> But I could hazard a guess that "autosize label" width is the raw text width  
> + 2 ?
>

So you could. And if you did propose such a hypothesis, an experiment
to determine the veracity of the proposition is self-evident, with the
code you've already written.  (Although I'd respectfully suggest you
rename GetTextWidth to the more precise Get LabelWidth).

And then you'd know.

-- 
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com


[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to