Malcolm,
Check gpgraphics class in the _\FFC\gdiplus.vcx. It has MeasureStringA/MeasureStringW methods. I think it should provide enough info for you to implement 4 first options.
>VFP 9's enhanced report writer provides 5 types of trim options as described below:
>
>* 1 = StringTrimmingCharacter
>* 2 = StringTrimmingWord
>* 3 = StringTrimmingEllipsisCharacter
>* 4 = StringTrimmingEllipsisWord
>* 5 = StringTrimmingEllipsisPath (for filenames)
>
>Is there a VFP/FoxTools function or Windows API call that provides the same trim options for form controls? I'm aware of DisplayPath() function which covers number 5 above.
>
>
--sb--