I thought that I implement column title hint into my own DBGrid. It's seems to be simple - I thought.
I added
TitleHints : TStrings
that contains information in this format:
name=value
Where name is (0-99) for non-field-based columns, and fieldname for field based columns. Value is the Hint of the column, crlf is \n.
Everything is ok, OnMouseMove is the the Hint based on position.
But: only the first hint shown, the nexts are not. I think this is because the hint mechanism is activated at mouse arriving into the "Control"... When I leave the Control, and come again, I get another hint - once. No matter I set ShowHint to off.
Because I don't want to create my own HintWIndow if possible, I search for a way to reset the Hint mechanism to the Applicaion believe: this is the first case in this control. Can I do it any way, like "send message", or call "cancelhint" if this exists, etc.
Do you know about this way?
Thanks for your help, and good day to you!
Regards: dd
You can reactivate the hint in your overridden
MouseMove
, e.g.:GetColumnTitleHint
is only an example, you should implement it to return the correct value from yourTitleHints
property.Hope this helps.