Richard Kucia
2008-03-28 20:32:16 UTC
Now this was a surprise. I wanted to show tooltips on the ColumnHeader of a ListView in details mode. Seemed like a simple enough task, but there doesn't seem to be a straightforward way to do this.
I found out that the MouseHover event fires for a ListView but not if the mouse is over a ColumnHeader. That really surprised me.
Similarly, the ToolTip object won't fire an event when the mouse is over a ColumnHeader.
A little googling shows that this has been a long-term problem. Some solutions that have been offered include handling the MouseMove event, but that seems like too much CPU time to burn -- even the solutions offered include that warning. And besides, if the above methods don't work, I would guess that MouseMove would also come up short, unless I'm watching MouseMove over the entire form (ugh).
Any ideas, anyone? Thanks.
Rick Kucia
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
I found out that the MouseHover event fires for a ListView but not if the mouse is over a ColumnHeader. That really surprised me.
Similarly, the ToolTip object won't fire an event when the mouse is over a ColumnHeader.
A little googling shows that this has been a long-term problem. Some solutions that have been offered include handling the MouseMove event, but that seems like too much CPU time to burn -- even the solutions offered include that warning. And besides, if the above methods don't work, I would guess that MouseMove would also come up short, unless I'm watching MouseMove over the entire form (ugh).
Any ideas, anyone? Thanks.
Rick Kucia
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com