Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculating widths and heights of strings
Message
From
28/11/2005 09:05:53
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
28/11/2005 06:06:36
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01072336
Message ID:
01072409
Views:
18
>>As an example, I have a label with a value of "Length of time in this position", Font:Arial Narrow - 8 point - I make the width to be 18480, but if I open the form in Designer it gets changed to 12291.667

>Look:
>
>thisform.TextWidth(cText)
>thisform.TextHeight(cText)
>
The only thing to watch at when using the .TextWidth() is that it assumes the font properties of the form, not the control. But then, it's quite simple to set thisform.fontWhatever=this.fontWhatever. And most of the time nobody touches the ugly Arial, anyway. I'm writing this just because I noticed that the originator of this thread mentions Arial Narrow.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform