Solved

How to turn off long hints in TListView

Posted on 2004-04-13
3
859 Views
Last Modified: 2008-03-03
"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.)

0
Comment
Question by:bremeski
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
Cayce earned 250 total points
ID: 10818804
0
 

Author Comment

by:bremeski
ID: 10822237
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.
0
 

Author Comment

by:bremeski
ID: 10822495
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.

0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
fizzArray2 challenge 1 91
no14 challenge 14 72
scoreUp challenge 14 64
WPF - Tooltips for ComboBox items 5 100
Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question