Solved

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

Posted on 2004-10-18
3
297 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

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

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

867 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

21 Experts available now in Live!

Get 1:1 Help Now