ListView OwnerDraw and the last three periods in a column problem,...

  • Thread starter Kerem Gümrükcü
  • Start date
K

Kerem Gümrükcü

Hi,

i know how to work with the owner draw mode in
the ListView-Class, but how do i draw the last three
dots in a column if the text exceeds the columns width?
To make it clear, i am talking about a ListViewItem's
Subitem and the case, the text in the Subitems is longer
than the columns width. This is the standard beahviour
in the non-ownerdraw mode, but you have to implement
it in the ownerdraw mode by yourself. How can i do that?
Because at the current state, the text of the subitems are
overlapping and "smudging" on the ListView,..

Thanks in advance,...

Regards

Kerem

--
 
C

Ciaran O''Donnell

Its a little hazy for me as its been a while.
but the DrawString on the graphics object takes a rectangle and a
stringformat in its parameters so you pass the rectangle you want to clip by,
plus set the stringformat clipping to be on word, or letter and it should
show the elipsis (...)

Let me know if this isnt enough and I'll dig out an example.
 
K

Kerem Gümrükcü

Hi Ciaran,

thanks for your reply, i found out, that i made some
wrong calculations for the rect i had to draw, because
i am drawing several things into a listview including
controls and images, so the complete Drawing is very
difficult and i made at very cricitc line a fundamental
calculation mistake, but i found it and fixed it. Thanks
for your reply, there is no need for an example anymore,...

Take care,...

Regards

Kerem


--
 

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