Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I determine widths for each field?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00150438
Message ID:
00150528
Vues:
23
Colin,

>So it's basically development by trial and error

Mostly that's true. No one has mentioned the fontmetric() functions they can be used to help figure out how wide to make things. But even that's not perfect, it really is a function of the data. Especially when using proportional width fonts. The kerning greatly affects the size of the fields. It also depends if the field is mixed case or all uppercase. A happy medium that seems to work well is to use FieldWidth * 1.5 * ( AverageCharWidth + MaxCharWidth ) / 2 for a mixed case field. If you are using an uppercase field you should FieldWidth * MaxCharWidth.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform