Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A formula for textbox width?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00020939
Message ID:
00020941
Vues:
35
>Is there a formula to dertmine how wide a textbox should be, given font size and maximum characters allowed? For example, I have a textbox that is allowed no more than 5 characters. The textbox uses a times roman 12 point font. How wide should it be to fit the 5 characters without chopping off the last one or having extra space?
>
>
>Michael G. Emmons

Look into FontMetrics parameter 6. I then added 20% to that value and rounded up. It seemed to work for me. This is assuming a field does not consume all "W"'s which are wider that "I"'s in a non-fixed space world.
Steve Medvid
Systems Analyst

Environmental Resource Management
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform