Hallo Olaf,
im Prinzip ja.
But I couldn't find implementation of .Windows in GDI+X.
Your link seems to show DrawText of GDI not GDI+
My copy of MSDN states for GDI+
ModifyString Has no effect on the drawn text.
Hm. Do you mean to use DrawText followed by ToString? This is the only idea I see to get the string back.
I have no idea to implement this. ::(
Danke
Agnes
>>AFAIK, the trimming in reports is done outside the reportoutput.app, IOW it will work even if you provide an empty listener to REPORT FORM
>
>Still all reports, even legacy types, are drawn with GDI+ by VFP9.
>
>There is no other way to get the same functionality. But I see The GDI+ DrawText function accepts the following flags in it's uFormat parameter:
>
>a) DT_MODIFYSTRING to get back the shortened string. Which is what you need mainly.
>b) DT_END_ELLIPSIS, DT_PATH_ELLIPSIS or DT_WORD_ELLIPSIS to determine which kind of ellipsis.
>
>see
http://msdn.microsoft.com/en-us/library/ms533909(VS.85).aspx>
>You don't need to draw on the form, you just need a Graphics Object. I think this will be quite easy with GDIPLUSX from VFPX.
>
>Bye, Olaf.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]