DrawString and ellipsis problem

From: cae (cadilhac_at_gmail.com)
Date: 12/20/04


Date: 20 Dec 2004 06:24:12 -0800

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



Relevant Pages

  • Repost: DrawString and ellipsis problem ... please help
    ... I have a rectangle with a string inside and the user can drag the mouse ... a string "abcd" is progressively displayed as: ... abc... ...
    (microsoft.public.dotnet.framework.drawing)
  • DrawString and ellipsis problem
    ... I have a rectangle with a string inside and the user can drag the mouse ... While shrinking, a string "abcd" is ... abc... ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Repost: DrawString and ellipsis problem ... please help
    ... GDI and GDI+ are two completely different systems. ... > 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. ... a string "abcd" is progressively displayed as: ...
    (microsoft.public.dotnet.framework.drawing)
  • Search function
    ... I need to search fields in the database that contain certain a given string ... ie if the user enter ABC and the field content is 'ABCD' the record should ...
    (microsoft.public.access.queries)
  • Re: Background color of rectangle
    ... > Sorry I wasn't clear enough, the rectangle is around a number of text ... >>> Dim fillBrush As New SolidBrush ... >> drawing the string. ... >> Dim measureStringBitmap As New Bitmap, ...
    (microsoft.public.dotnet.languages.vb)