Question

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 !

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top