Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamically Size A Text Box
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00481579
Message ID:
00481590
Vues:
9
>Fred,
>
>When I issue:
>
>? TXTWIDTH("Client", "Arial", 9)
>
>in the Command Window, it returned 6.400.
>
>This is obviously not the correct Width setting for the textbox. Am
>I missing somehting?
>
>Thanks

My bad. TXTWIDTH() will return the number of characters using the average size in pixels of the font. You could then use FONTMETRIC() element 6, I believe as a multiplier to get the length. Sorry about that.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform