Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid's tooltip
Message
From
21/05/2007 13:11:34
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01109969
Message ID:
01227351
Views:
38
>>>>You posted this saying you were running VFP9 (see above for version). For VFP8, I guess you can use the fancy tool tip code in the downloads here, I've never tried it.
>>>
>>>The problem is how to get content of the cell where mouse is positioned. I don't have good ideas here. do you? Here is one solution http://www.tek-tips.com/viewthread.cfm?qid=1362055#postform but it relies on ActivateCell method which causes weird navigation effects.
>>>
>>>Thanks a lot in advance.
>>
>>I've tried some code that saves the grid.ActiveRow, hides the existing ToolTip by moving the mouse and puts it back, then skips the .RelativeRow records in the grids rowsource, and then sets the column.ToolTipText to what I want (info from the current record), then sets the table back to the saved row. It all works except sometimes the code that hides the current tooltip leaves the mouse in the wrong position. I still haven't had time to hunt that one down as it doesn't happen everytime, but often enough to be annoying.
>>
>>The above would only work on a cursor or a view where the physical record order is how you see it, an indexed table would not work correctly.
>
>Hi Fred,
>
>I found that the problem with tooltip text in grid was already solved by Russian programmer Igor Korolev several years ago http://vfpdev.narod.ru/download/ttingrd.zip
>
>I haven't looked closely at the code yet, just ran the sample and found it to be working great.
>
>Just wanted to let you know.

I'll have to try to find some time to look at it. Thanks for the link.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform