Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tooltip text for a cell in a grid
Message
De
24/01/2011 10:17:56
 
 
À
24/01/2011 09:22:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2000 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01497090
Message ID:
01497186
Vues:
116
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform