Link to home
Start Free TrialLog in
Avatar of sftweng
sftweng

asked on

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

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
ASKER CERTIFIED SOLUTION
Avatar of DragonSlayer
DragonSlayer
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sftweng
sftweng

ASKER

Thanks, it looks like exactly what I want.
Glad to be of help... sigh... too bad undu is not updated anymore...