Chris's code (in FAQ184-3064) should work well, but one thing which it won't do is to let you vary the tooltip according to the data in the record.
In other words, if you want the tip to show the contents of a field in the table to which the grid is bound, that won't work. That's because you cannot address the individual rows of the grid, and so there is no way of knowing which record the mouse is on.
At least, that was I believe. If I am wrong, Chris (or someone else) please correct me.
Theoretically, if one was to maintain an array of the currently displayed records, and keep pointers corresponding to AfterRowColChange events, then one could keep track somewhat of the current location in the table of the records being displayed.
With that, one could maybe use the grid coordinates along with the RowHeight and RelativeRow properties in the MouseMove event to calculate which cell the mouse is over, throw all that data at a form method which would return an array element's value to the ToolTip property.
Sounds like a Goldberg machine as well as a headache.
You was right. But I done it. I used afterrowcolcahange event and remember record that is selected. I store records tooltiptext in new property. Then I show the new property.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.