OK Found it - The Codegear help search engine is really not very good.  I
tried just searching on MouseToCell and it returned nothing.  Go to
TStringGrid and open up Members (They don't have a separate Methods link)
scroll down the list and there it is.

However - I have got a working system going triggered on the MouseMove event
and using the CellRect function.  I have set up an arbitary +/- 3 pixel
window either side of the cell margin to allow dragging.  It works but if
you drag too quickly you end up selecting the adjacent cell and loosing the
drag.  As a result, its not as smooth as I would have liked.  Any
suggestions which might speed it up or stop it loosing the drag would be
appreciated.

JohnB

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: 10 June 2008 20:57
To: [email protected]
Subject: RE: Detecting mouse position on a grid.

MouseToCell is a method in both TStringGrid and tDrawGrid.

Do a Find on TStringGrid in Delphi Help and then look at the methods.

HTH

Dick

____________________________________________________________
Live the good life! Click now for great retirement planning assistance!
http://thirdpartyoffers.juno.com/TGL2141/fc/Ioyw6i3mK7BydY0Ayyl4WlLWlRFbhpOR
8IqeH5q9AEOO1ZJxUvxxH4/
_______________________________________________
Delphi mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi


_______________________________________________
Delphi mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to