DrawString and ellipsis problem
From: Herve Bocuse (gdiawara_at_gmail.com)
Date: 12/21/04
- Next message: Dennis Myrén: "[OFF TOPIC] Merry christmas"
- Previous message: ian: "Referencing a non-self-registering DLL"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 21 Dec 2004 07:53:59 -0500
Hi,
I come from the MFC world and I can't get the same behaviour I add in
my old app with a new dotnet app written in C#.
I have a rectangle with a string inside and the user can drag the mouse
to shrink the rectangle width. While shrinking, a string "abcd" is
progressively displayed as:
abcd
abc...
ab...
a...
a..
a.
With the StringTrimming.EllipsisCharacter flag set in C# I get:
abcd
abc...
ab...
a...
abc
ab
a
It means that as soon as the "..." characters can't be displayed
completely, then the string is displayed again (at least the characters
that fit in the rectangle).
Any idea ?
Thanks a lot for your help
Herve
- Next message: Dennis Myrén: "[OFF TOPIC] Merry christmas"
- Previous message: ian: "Referencing a non-self-registering DLL"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|