Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FONTMETRIC() does not give proper value
Message
De
04/12/2002 22:42:01
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
 
À
04/12/2002 05:39:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00729344
Message ID:
00729754
Vues:
10
> 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).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform