DrawString and ellipsis problem

H

Herve Bocuse

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top