Solved

"Windows Explorer"-like hints for too-long Treenodes

Posted on 2004-10-18
3
294 Views
Last Modified: 2010-04-05
The Windows file explorer (not the Internet Explorer) pops up a hint on a MouseOver event if the file name is too long to fit within the displayed portion of the treelist, containing the full file name. At least it looks like a "Hint", though it's positioned immediately on top and appears almost intantly.

I've been able to do something similar by using the Hint field of a TreeList (actually a TdxTreeList) but the hint applies to the entire tree, not to the tree node that the mouse is positioned over.

I'd like to popup a hint on a MouseOver event for any treenode, as the mouse moves over it, without having to exit and re-enter the list and have it appear directly over the tree node. I'd also like to do it as quickly as Windows Explorer does; there must be a timeout value that can be changed to make the hint popup sooner than the default.

If there's already support within TTreeList, TdxTreeList (DevExpress), or something else easily accessible, please point me to it. Alternatively, if you have a MouseOver event handler that can do something like this, I'b be very grateful for the code.

Thanks,
Alan
0
Comment
Question by:sftweng
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
DragonSlayer earned 500 total points
ID: 12344565
Ermm... not sure if this is what you want? http://www.undu.com/Articles/000928e.html

A bit rudimentary, but I guess stuff like timeout to hide/show can be configured from the above example.
0
 
LVL 7

Author Comment

by:sftweng
ID: 12344608
Thanks, it looks like exactly what I want.
0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 12344741
Glad to be of help... sigh... too bad undu is not updated anymore...
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video discusses moving either the default database or any database to a new volume.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 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

23 Experts available now in Live!

Get 1:1 Help Now