Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine a wrapped word label's height?
Message
From
21/09/2006 08:50:10
 
 
To
20/09/2006 16:04:31
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01155729
Message ID:
01155921
Views:
18
Hi Mike.

>Does anyone know if it is possible to determine the correct height of a label such that all wrapped text (ie all lines) are visible?

Check out my blog article http://doughennig.blogspot.com/2006/04/forget-txtwidth-use-gdipmeasurestring.html. It presents a class using GDI+ to accurately calculate the width and height of strings.

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform