Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine max font size
Message
 
 
To
06/04/2008 10:45:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01308525
Message ID:
01308534
Views:
8
>Hi All
>
>I am trying to determine the maximum font size that I can use to display some text in a label's caption. Word wrap for the label is on. I know the dimensions of the label, width and height. I know the number of characters in the text I want to display. How can I determine the largest font size I can use so that all the text fits within the label control's caption?

Check http://doughennig.blogspot.com/2006/04/forget-txtwidth-use-gdipmeasurestring.html
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform