Repost: DrawString and ellipsis problem ... please help
From: Herve Bocuse (cadilhac_at_gmail.com)
Date: 01/07/05
- Next message: Giedrius: "GDI+ DrawString space between words"
- Previous message: ?scar Martins: "PictureBox paint problem2"
- Next in thread: Bob Powell [MVP]: "Re: Repost: DrawString and ellipsis problem ... please help"
- Reply: Bob Powell [MVP]: "Re: Repost: DrawString and ellipsis problem ... please help"
- Messages sorted by: [ date ] [ thread ]
Date: 7 Jan 2005 05:04:30 -0800
Hi,
I posted some time ago in December the following message and got no
answer. It is very important to me to solve this problem and I wish
that MVP people or anyone else could study with me this problem. It
could give birth to a wonderful custom control ;)
Thanks in advance, here it is :
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
on the right side of the rectangle to shrink its 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: Giedrius: "GDI+ DrawString space between words"
- Previous message: ?scar Martins: "PictureBox paint problem2"
- Next in thread: Bob Powell [MVP]: "Re: Repost: DrawString and ellipsis problem ... please help"
- Reply: Bob Powell [MVP]: "Re: Repost: DrawString and ellipsis problem ... please help"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|