Solved

How to turn off long hints in TListView

Posted on 2004-04-13
3
853 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
withoutString  challenge 40 182
MaxSpan challenge 9 80
sumHeights  challenge 17 66
count8 challlenge 13 118
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 goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
This video teaches viewers about errors in exception handling.

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now