Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine TextBox width?
Message
De
21/09/2009 07:21:21
 
 
À
21/09/2009 07:14:51
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01425392
Message ID:
01425410
Vues:
51
>>It is possible - untested though - that form.TextWidth() and form.TextHeight() give a better result than the average fontsize. The only drawback is that you have to set the form's font attributes to match those of the textbox
>
>Bit of ugly if you run through all textboxes to switch all those form stuff .... But if my method fail I will remember. ^_______^

Yes, I wrote that there was a drawback - but it returns the exact width and not just an average (^_\\\)
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform