[Lazarus] DBGrid painting confusion

Jesus Reyes jesusrmx at yahoo.com.mx
Thu Jan 21 21:22:18 CET 2010

--- El jue 21-ene-10, Graeme Geldenhuys <graemeg.lists at gmail.com> escribió:

> De:: Graeme Geldenhuys <graemeg.lists at gmail.com>
> Asunto: [Lazarus] DBGrid painting confusion
> A: "Lazarus mailing list" <lazarus at lists.lazarus.freepascal.org>
> Fecha: jueves 21 de enero de 2010, 11:56
> Hi,
> Inside TCustomDBGrid.DefaultDrawColumnCell, the code looks
> as follows:


> My confusion is the call to DrawCellText(). The parameter
> list for
> DrawCellText() is shown below. So why is the method above
> passing the
> "DataCol" variable in the aRow parameter? Shouldn't the
> DataCol be
> passed as the aCol parameter instead?  Also, why is
> aCol always 0 in
> the call to DrawCellText()?

I understand the confusion, it was a mix of typo and incomplete implementation, fixed in r 23526.

Jesus Reyes A.

      Encuentra las mejores recetas en Yahoo! Cocina.                       

More information about the Lazarus mailing list