Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox caption
Message
From
11/06/2008 07:58:54
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
11/06/2008 06:36:09
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01322765
Message ID:
01323035
Views:
26
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.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform