Link to home
Start Free TrialLog in
Avatar of bremeski
bremeski

asked on

How to turn off long hints in TListView

"Long hints" being the long straight hints that superimpose the item's text to complete the item text when the item's text is cut short in the listview due to the length of the listview column.

As an example of what I am talking about:
Open your Windows Explorer.
Set the view style to Details.
Resize the Type column until only a few characters are showing for each item.
Place the mouse over some of these Type item's text.
Watch the yellow hint popup right over the item's text to complete it on screen because you cannot see it all from the listview because the column is too narrow.

I need to turn this off this because I am using a stayontop form that has a litview in it and these hints are showing up behind the form. (Interestingly, the infotips are not having this problem.)

(I program in Delphi but am resending this to all programmers because I am not getting a response in the Delphi area as of yet.)

ASKER CERTIFIED SOLUTION
Avatar of Cayce
Cayce
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bremeski
bremeski

ASKER

I looked at this section for a long time and still was unable to find anything that talked about the extended caption/label hint or tooltip that shows the entire text of a "cell" that is not wide enough to display it entirely. (These are my words to try to identify the feature better.) I do know that this feature goes away when checkboxes are turned on.
Actually, this got me looking at doing a

SendMessage(listview.Handle, LVM_SETTOOLTIPS, 0, 0);

The last param is the handle to the tooltip window. By setting it to zero, I have effetively stopped the tooltips, which was my goal.

So thanks for pointing this library out to me.