Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox caption
Message
From
11/06/2008 00:34:59
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
10/06/2008 08:59:19
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:
01323005
Views:
25
Hi Olaf,

yes I know that this can be done with the trimming property of GDI+ StringFormat. At least if I like to draw it.

But I have some doubts that I like to create endless canvas to my form and assign all those repaints ::)

I look for something that does the same and returns the string so that I can simply put it in caption prop and let VFP paint it.


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

Thanks
Agnes
>>Cetin,
>>
>>my failure.
>>
>>What I mean was Trim as the report does, like trim to the nearest word or adding eclipsis.
>
>Like the Trim Mode for Character Expressions?
>
>Prior to Visual FoxPro 9, field objects were always trimmed to the nearest word when the text was too long. In Visual FoxPro 9, a new option on the Field Properties dialog box allows you to determine how the text is trimmed.
>
>GDI+ provides multiple ways for you to handle text that does not fit in its assigned layout rectangle. The ReportListener class exposes its various options as described in the table below
>
>-Default trimming uses the default behavior, which is the same as the Trim to nearest word, append ellipsis option. This behavior is similar to prior versions of Visual FoxPro, with the exception of appending the ellipsis.
>-Trim to nearest character trims text to the last full character that fits in the defined area.
>-Trim to nearest word trims text to the last full word that fits in the defined area.
>-Trim to nearest character, append ellipsis trims text to the last full character that fits in the defined area, after an ellipsis is added to the text that prints.
>-Trim to nearest word, append ellipsis trims text to the last full word that fits in the defined area, after an ellipsis is added to the text that prints.
>Filespec: Show inner path as ellipsis replaces the inner directories of a long path and filename with an ellipsis when the full text does not fit in the defined area.
>
>It's a GDI+ feature foxpro uses. You should find how it's done in the source code of the ReportOutput.app. Unfortunately it is no simple setting for any caption.
>
>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