Solved

How to turn off long hints in TListView

Posted on 2004-04-13
3
862 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
equalIsNot  challenge 43 183
copyEvens challenge 6 125
mapBully challenge 6 196
Copy Files - Python 7 133
There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

738 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