--- El mar 7-sep-10, Lukasz Sokol <[email protected]> escribió:
> De: Lukasz Sokol <[email protected]> > Asunto: Re: [Lazarus] String Grid MouseToCell seems inconsistent when deleted > some columns > A: "Lazarus mailing list" <[email protected]> > Fecha: martes, 7 de septiembre de 2010, 10:01 > 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 :) > Indeed it should, and the correct translation of coordinates should be made with StringGrid1 StringGrid1.MouseToCell(StringGrid1.ScreenToClient(Mouse.CursorPos)) otherwise MouseToCell would get parent form coordinates. Jesus Reyes A. -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
