Detect TextSize of a ListViewItem

  • Thread starter Thread starter Matthias Kwiedor
  • Start date Start date
M

Matthias Kwiedor

Hi!

I want to display a Tooltip at a ListView, when the Text in a Column won't
fit.

I know ho to display the Tooltip, but how can i detect if a Text fits into
a Column or is cuttet with "..."?


Regards



Matthias
 
HI!
i think that you have to use the mouse move event, check what is the current
column and display the value of it.

guy
 
HI!
i think that you have to use the mouse move event, check what is the
current column and display the value of it.

guy

Hi!

Thanks for your answer, but as i said, i allready know how to display a
Tooltip. I need just to know how i can detect if the Text of a
ListViewItem fits into the Column or the text is cuttet. I wan't only
to Display Tooltips if the Text doesn't fit into the Column


Regards


Matthias
 
Matthias said:
how can i detect if a Text fits into
a Column or is cuttet with "..."?

You might want to check ListViewItem.Bounds, ListViewItem.GetBounds or
ListView.GetItemRect
 
Back
Top