Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining Cell contents using MouseMove Event
Message
De
31/08/2001 08:50:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
31/08/2001 07:07:14
Liam O'Hagan
O'Hagan Programming Ltd
Irlande
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00551286
Message ID:
00551331
Vues:
18
>Hi All,
>
>Has anyone got a solution (or a direction in which to go) for determining the contents of a cell in a grid over which a mouse is moving. I imagine the MouseMove event is where I need to begin but I'm kinda stuck at that point. Any assistance appreciated.
>
>TIA
>
>Liam

Liam,
If activating the cell under cursor is not a problem you could place a trasparent container (not shape) in front of grid and keep gridname in its tag :
*Container.MouseMove
LPARAMETERS nButton, nShift, nXCoord, nYCoord
store 0 to nWhere, nRelrow, nRelCol
with eval(this.tag) && Tag keeps something like 'thisform.grdMyGrid'
 .GridHittest(nXCoord, nYCoord, @nWhere, @nRelRow, @nRelCol)
 .ActivateCell(nRelRow, nRelCol)
 wait window trans(eval(.Recordsource+'.'+varread())) nowait
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform