Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formula for font size and textbox width
Message
From
21/12/2000 13:48:25
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00455959
Message ID:
00456028
Views:
21
Thanks, both of you.

Michelle

>
>Michelle,
>Try:
>Txtbox1.Width = Txtbox1.Maxlength*fontmetric(7,Txtbox1.Fontname,Txtbox1.FontSize)
>
>You will also have to take into account the attributes like Bold, Italic, etc. You can build a string based on those properties and pass that as the fourth parameter to Fontmetric.
Previous
Reply
Map
View

Click here to load this message in the networking platform