Cause "hint" to reset the list when I move through the items

Of course I've seen this before, but can't find any examples.

I have TListView set in report view mode. It contains about half a dozen subtitles, and one thing we would like to do is a "tooltip" (tooltip) in the list dynamically displaying another data field. That is, every time you move the mouse over any given line, the tooltip displays text related to that particular line.

I'm there partially, I can do it using the OnInfoTip method, but unfortunately, as soon as the prompt appeared, Windows seemed to decide that I didn't need to see the prompt for the list again until I hoisted my mouse off the list, and then again return it. Just moving the mouse to the next line, keeping the mouse over the control all the time, does not convince the program to display the new tooltip.

Just to be clear - I have OnInfoTip working so that the program displays the correct tooltip related to the element from which I first moved the mouse. Changing the tooltip text is not a problem. The problem is that moving the mouse to another item in the list does not bring up a new tooltip. (Hope this makes sense).

Is there some correct way to get this behavior to work, or am I going to end up doing something bad with the mouse and then manually drawing the hintbox (etc.)?

+2


source to share


3 answers


check the following link:

Show custom hints for TListView subtypes



Edit:

I just tested it now on delphi7 by displaying a tooltip for each line dynamically after moving the mouse in the list.

+4


source


Offtopic: It's just in Virtual Treeview , it's a built-in feature.



0


source


i was using the OnInfoTip event (I don't need hints for subpoints). the hint was "flashing" (show / hide / show / hide / show / hide / show / hide). found the listview ShowHint was false. set it to True and it works as it should.

0


source







All Articles