Hi Peter,

Use the OnMouseMove event.
It returns X & Y of mouse in grid.
Use the grid's MouseToCell to convert X & Y to cell coords.

Cheers, Dick

On Mon, 29 May 2006 08:43:54 -0700 "Peter KAPAS" <[EMAIL PROTECTED]>
writes:
> Hi guys,
> 
> May I ask you about using MouseCoord? Delphi Help says it generates 
> Column 
> and Row
> coordinates when the mouse is over the Cell. I used it, but 
> normally, when I 
> don't click on
> the cell the results are Count = -1 and Row=-1 (TGridCoord 
> variable). If I 
> click on the
> StringGrid window, the coordinates are okay. But I want right 
> coordinates 
> without
> clicking on the window, how the Help suggests it. Where do I do 
> mistake?
> 
> Thanks,
> Peter 
> 
> 
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://www.elists.org/mailman/listinfo/delphi
> 
> 
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to