Virtual TreeView hint not showing

I have set ShowHint to true and HintMode to hmToolTip, but my OnGetHint() event handler doesn't even breakpoint when I hover the cursor over the control.

Any idea what I am doing wrong?

.


Additionally, does anyone have any hints as to good documentation, tutorials, etc? For instance, where do I find out what the various values of the HintMode property actually mean?

The documentation on the website is extremely incomplete, the phrase "Use other resources like the news group or the Delphi Gems message board to find a description" occurs 789 times in the HMTL help - generally where I really need help :-/

[Update] In fact, I'd be willing to use another component, even one less pwerful, if it were documented.

Thanks !


The source code is your best friend with VirtualTree...

TVTHintMode = (
    hmDefault,         // show the hint of the control
    hmHint,            // show node specific hint string returned by the application
    hmHintAndDefault,  // same as hmHint but show the control's hint if no node is concerned
    hmTooltip          // show the text of the node if it isn't already fully shown   

);

I usually use these options to display the hint text of the node

  ShowHint := True;
  HintAnimation := hatFade;
  HintMode := hmHint;

hmTooltip is using the text of the node so it may not call the OnGetHint in that case.

链接地址: http://www.djcxy.com/p/34990.html

上一篇: 如何使虚拟TreeView控件始终按行滚动?

下一篇: 虚拟TreeView提示不显示