[Unsolved: Not Fixable ]DrawGrid.MouseCoord reports wrong values. lazarus / 31-LCL ---------------------------------------------------------------------- jamie · 2017-12-29 22:28 Maybe I got off the banana boat to early, but reading the help in Delphi clearly tells me that  DrawGrid.MouseCoord(X,Y) = APoint which in turn reports the ROW,COL the mouse is hovering over.   The Delphi help clearly states "Screen Coordinates" however, It only works using Client Coordinates.  The Online Delphi help is clear about this, my old D3 help file is also just as clear however, the help that comes with lazarus on the subject appears the be cloudy on it's description and clearly wrong if I read it correctly? "Find the mouse coordinates relative to the grid origin" I know the help file isn't up to date that comes with the down load package but still never the less the function is only operating with Client mouse X,Y not screen?  This is with 1.8.0,  on windows, I do not know if 1.6.4 works correctly or not... ---------------------------------------------------------------------- Blaazen · 2017-12-29 23:03 Hi, this code Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.StringGrid1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);var aGC: TGridCoord;begin  aGC:=StringGrid1.MouseCoord(X, Y);  writeln('R C ', aGC.x, ' ', aGC.y);end;gives the same results in Lazarus 1.9 and Delphi7. Maybe the Delphi docs is inaccurate. ---------------------------------------------------------------------- jamie · 2017-12-30 01:05 I have another theory and that is:  Its was suppose to do as they say but, by the time it was caught I would be guessing there was lots of software out there using as is because with my D3 there is no MouseToCell method but the MouseCoord does exist.  It only makes perfect sense to have a method like that to capture the cell from other controls and in my case, I was using a TPopUpMenu, taking the Mouse.CursorPos in one of the menuitems to detect what cell the pointer is hovering over..  Using the MouseMove in the Grid is find if you want to use the MouseToCell method but if you are in the Menu control and you need to know what cell  your pointer is on, the "MouseCoord" is an attractive method because its documented to do exactly what I needed and most likely was designed to do so originally.  I guess you could say it is a documented error but if that being the case all they had to do was fix the docs, which they didn't...  oh well, I'll close it as unsolved, I used the Old way of obtaining it.  So now we have two different methods doing the Exact same thing.. How quaint.