Set the autowidth on and take the width property ? Just a guess not tried
Al
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Newton
Sent: 29 September 2008 14:57
To: [EMAIL PROTECTED]
Subject: Calculating text width
Hi all
If I create a label with
- Original Message -
From: "Ted Roche" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: 29 September 2008 16:36:32 o'clock (GMT) Europe/London
Subject: Re: Calculating text width
On Mon, Sep 29, 2008 at 11:35 AM, Ted Roche <[EMAIL PROTECTED]> wrote:
> On Mon,
On Mon, Sep 29, 2008 at 11:35 AM, Ted Roche <[EMAIL PROTECTED]> wrote:
> On Mon, Sep 29, 2008 at 11:30 AM, Paul Newton <[EMAIL PROTECTED]> wrote:
>> Agreed Ted (about the name of the function) !
>>
>> Results of test:
>>
>
> Hmm.. there seems to be a pattern! Is it the same in Dingbats or a
> non-T
On Mon, Sep 29, 2008 at 11:30 AM, Paul Newton <[EMAIL PROTECTED]> wrote:
> Agreed Ted (about the name of the function) !
>
> Results of test:
>
Hmm.. there seems to be a pattern! Is it the same in Dingbats or a
non-TrueType font?
___
Post Messages to:
;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" <[EMAI
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,
mber 2008 16:09:30 o'clock (GMT) Europe/London
Subject: Re: Calculating text width
On Mon, Sep 29, 2008 at 10:11 AM, Paul Newton <[EMAIL PROTECTED]> wrote:
>
> I don't necessarily consider one or the other to be "more correct" - but I
> would like a way of calcula
On Mon, Sep 29, 2008 at 10:11 AM, Paul Newton <[EMAIL PROTECTED]> wrote:
>
> I don't necessarily consider one or the other to be "more correct" - but I
> would like a way of calculating the width in such a way that the result is
> consistent with what AutoSize yields ...
>
Have you tried a coupl
No, but see my immediate prior post !
- Original Message -
From: "Gérard Lochon" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: 29 September 2008 15:50:48 o'clock (GMT) Europe/London
Subject: Re: Calculating text width
>
> I don't necessarily consi
l
- Original Message -
From: "Paul Newton" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: 29 September 2008 15:11:23 o'clock (GMT) Europe/London
Subject: Re: Calculating text width
Ted
I don't necessarily consider one or the other to be "more correct&quo
>
> I don't necessarily consider one or the other to be "more correct" - but I
> would like a way of calculating the width in such a way that the result is
> consistent with what AutoSize yields ...
Are you ready to reverse compile VFP ?
;o)
___
>
To: [EMAIL PROTECTED]
Sent: 29 September 2008 15:06:31 o'clock (GMT) Europe/London
Subject: Re: Calculating text width
On Mon, Sep 29, 2008 at 8:56 AM, Paul Newton <[EMAIL PROTECTED]> wrote:
> Is there a way to more accurately calculate the width of the label ?
Which answe
e -
From: "Gérard Lochon" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: 29 September 2008 14:59:26 o'clock (GMT) Europe/London
Subject: Re: Calculating text width
> However the expression
> txtwidth("Period","Tahoma",8)*FontMetric(6,"Tahoma"
On Mon, Sep 29, 2008 at 8:56 AM, Paul Newton <[EMAIL PROTECTED]> wrote:
> Is there a way to more accurately calculate the width of the label ?
Which answer to you consider more correct? Why?
--
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com
_
> However the expression
> txtwidth("Period","Tahoma",8)*FontMetric(6,"Tahoma",8) returns 30.
>
> Is there a way to more accurately calculate the width of the label ?
wIth txtwidth(REPL("Period",1000),"myfont",8)*FontMetric(6,"myfont",8)/1000
&& you"ll get better precision
(if not an exotic fon
Hi all
If I create a label with Autosize set to .t. and the Caption set to "Period",
the width of the label is 32 pixels (Font: Tahoma, Size: 8)
However the expression txtwidth("Period","Tahoma",8)*FontMetric(6,"Tahoma",8)
returns 30.
Is there a way to more accurately calculate the width of th
16 matches
Mail list logo