Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid's tooltip
Message
De
16/05/2007 12:24:14
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01109969
Message ID:
01226067
Vues:
49
>>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.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform