Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List Box and Non-Proportional fonts
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
00967462
Message ID:
00968510
Vues:
12
Hi Herman

>Anton has given you the right answer.
>Here is how to calculate it directly (without dealing with form)
>
>
>nWidth = GetTextWidth( 'Testing', 'Arial', 12, '' )
>
>Function GetTextWidth( tc_Text, tc_FontName, tn_FontSize, tc_FontStyle )
>   Return ( TxtWidth( tc_Text, tc_FontName, tn_FontSize, tc_FontStyle ) * ;
>       FontMetric( 6, tc_FontName, tn_FontSize, tc_FontStyle ) )
>EndFunc
>
Thanks for the code. I'll give it a try today itself.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform