Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FONTMETRIC() does not give proper value
Message
From
04/12/2002 22:42:01
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
 
To
04/12/2002 05:39:26
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00729344
Message ID:
00729754
Views:
9
> In my application I need to generate the user defined generic Data entry screen. User has got option to select the required FONT and SIZE. I am trying to make use of FONTMETRIC() to calculate the width of each Text Box. FONTMETRIC() gives proper value for ARIEL font. But it is not proper with COMIC SANS MS and VERDANA (example) Fonts. Is there any better way to calculate the WIDTH of TEXTBOX?

If you plan on "generating" screens, I would consider .ScaleMode = 0 (Foxels).

You can then use relative numbers like 1, 2, etc. for rows (ie. .Top), columns (ie. .Left), widths and heights. If something doesn't look quite right at run time, you can use a scaling factor in .Init time to compensate (eg. THIS.Row = THIS.Row * 1.2).
Previous
Reply
Map
View

Click here to load this message in the networking platform