Solved

How to turn off long hints in TListView

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
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.

707 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

18 Experts available now in Live!

Get 1:1 Help Now