Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculate textbox width
Message
From
30/04/2003 06:56:09
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00783078
Message ID:
00783084
Views:
13
>Hello all,
>does anyone know the formula to calculate a textbox width and the like, based on the font,fontsize number of characters etc..., my client ( quite rightly ) only wants to display the exact number of storable characters.
>
>regards
>
>Peter Kane

Pete,
Check fontmetric(), txtwidth(). With proportional fonts it's impossible to get exact width IMHO.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform