Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need simple of using GDI+ to determine TextWidth
Message
 
À
13/04/2007 13:52:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
SAMBA Server
Database:
Visual FoxPro
Divers
Thread ID:
01215652
Message ID:
01215664
Vues:
14
Hello Gregory

I didn't realize the TextWidth method on the form wasn't just an averaged number like TxtWidth(). I am not outputting to a form, but should be proportional anyhow. I'll give it a try

Do you know if that is using the GDI+ method internally?

Thanks
Bob

>>Hello all,
>>
>>I know this was discussed recently, but I no longer have my PUTM so I can not do the search myself. I am looking for a simple example of using GDI+ to do what TxtWidth() is suppose to do.
>>
>>Just need to get the length of a string based on Font, Style, Size, etc
>>
>>Thanks in advance....
>>
>>Bob
>
>Bob,
>
>I believe you can use the TextWidth() method of a form provided you set all its font properties first
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform