[Lazarus] String Grid MouseToCell seems inconsistent when deleted some columns

Lukasz Sokol el.es.cr at gmail.com
Tue Sep 7 17:01:27 CEST 2010

Hello faber,

On 07/09/2010 15:45, faber wrote:
> try with StringGrid1.MouseToCell(ScreenToClient(Mouse.CursorPos))
Oh... yes that solved the issue. Sorry for the noise :) i was searching for
the ScreenToClient, but $Deity knows why I was looking for it as procedure of
the StringGrid itself :)

> or better use X,Y with OnMouseDown:
>   StringGrid1MouseDown(Sender: TObject; Button: TMouseButton; Shift:
> TShiftState; X, Y: Integer);
umm but I am actually doing that one on context menu popup :) to add menu options
to filter out certain values; that is why I use Mouse object.


> best regards
> faber
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

More information about the Lazarus mailing list