Any ideas on how I can measure the height of a word wrapped string (> 255 chars) that is wrapped within a given width? (For strings < 255 chars, one can measure the height of a label control with its .AutoSize property set to True).
I can use a form's .TextWidth() method to determine the width required to display a single line of text of a given font.
A form's .TextHeight() has no way to specify the width to use when wrapping text and so appears to be basically worthless.
Is there a Windows API, FoxTools function or some other technique I can use to determine the height of a word wrapped string displayed within a given width?
Thanks,
Malcolm
I can use a form's .TextWidth() method to determine the width required to display a single line of text of a given font.
A form's .TextHeight() has no way to specify the width to use when wrapping text and so appears to be basically worthless.
Is there a Windows API, FoxTools function or some other technique I can use to determine the height of a word wrapped string displayed within a given width?
Thanks,
Malcolm