[Lazarus] SubVersion vs Git

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Nov 5 08:38:09 CET 2008

On Tue, 4 Nov 2008, Graeme Geldenhuys wrote:

> On 11/4/08, Jesus Reyes <jesusrmx at yahoo.com.mx> wrote:
> >  >
> >  > How can I force the grid to invalidate (or draw if visible)
> >  > a single cell ?
> >  >
> >
> >
> > grid.InvalidateCell(ColIndx,RowIndex);

That is what I also expected...

> >
> >  Jesus Reyes A.
> Just curious....but why would you need that?  Isn't the grid painting
> double buffered?

Well, I have a special grid mediator that must redraw a TCustomDrawGrid 
cell, but I don't want it to do this unless it is absolutely necessary. 
So I tell the grid to invalidate the cell and have it figure out whether
the repaint is needed or not. (and in doing so, it calculates all needed
parameters such as the cell rectangle and so on)

For a stringgrid, setting the cell text will do whatever is needed, but
that doesn't work in a TCustomDrawGrid.

But somehow the InvalidateCell doesn't show up in the code completion.
I just get "Invalidate", which I found strange, and so I asked the 
question. I'll investigate this. 

Thanks to everyone for the answers.


More information about the Lazarus mailing list