[Lazarus] BoxRect

Jesus Reyes jesusrmx at yahoo.com.mx
Sun Mar 29 21:40:30 CEST 2009





--- El dom 29-mar-09, Alexander Klenin <klenin at gmail.com> escribió:

> De:: Alexander Klenin <klenin at gmail.com>
> Asunto: Re: [Lazarus] BoxRect
> A: jesusrmx at yahoo.com.mx, "General mailing list" <lazarus at lazarus.freepascal.org>
> Fecha: domingo, 29 marzo, 2009, 1:08 pm
> On Mon, Mar 30, 2009 at 05:36, Jesus Reyes
> <jesusrmx at yahoo.com.mx> wrote:
> >  I implemented BoxRect method in grid in r19156,
> initally public, needs testing.
> 
> I do not use this method, so I do not know how important it
> is,

I didn't know that it exist.

> but it seems that Delphi returns "empty rect" (0,
> 0, 0, 0) if
> arguments are either unsorted or totally outside viewing
> area.

I don't know, "Call BoxRect to obtain the screen coordinates, in pixels, of the cells that run from the column with index ALeft to the column with index ARight ..."  if I repleace tokens with numbers "... that run from the column with index 10 to the column with index 1 ..." it still makes sense to me.

I think test cases will clarify this, hope somebody can do it.

> 
> Additionally, I would suggest to use IntersectRect function
> for computing intersection instead of open-coding it.
>

It makes sense I will change it.
 
> 
> -- 
> Alexander S. Klenin

Jesus Reyes A.

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.com.mx/ 




More information about the Lazarus mailing list