Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tooltip text for a cell in a grid
Message
From
24/01/2011 10:17:56
 
 
To
24/01/2011 09:22:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2000 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01497090
Message ID:
01497186
Views:
115
Tamar --

While I have used a different approach than you for this first part of what you described, I completely agree with your last statement

The tricky part is making sure you return the value from the right row. Unfortunately, the only way I found to do that was to use GridHitTest to figure out which row and then ActiveCell to land on the right one.

The unfortunate result of this technique is that it causes focus to transfer to the grid (if it wasn't already on the grid).

>>I need to find a way of displaying the contents of a memo field as tooltip text when you hover over it in the grid control.
>>
>>Any ideas of how I could achieve this?
>>
>>Any help extremley appreciated
>>
>
>I just finished getting some code for this working last week. I used an access method in the grid's ToolTipText that drills down to return the ToolTipText of the control. The control has an access method for ToolTipText as well that returns what I want displayed. The tricky part is making sure you return the value from the right row. Unfortunately, the only way I found to do that was to use GridHitTest to figure out which row and then ActiveCell to land on the right one.
>
>Tamar
Jim Nelson
Newbury Park, CA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform