[Lazarus] More grid issues

Michael Van Canneyt michael at freepascal.org
Sat Jun 21 19:25:14 CEST 2008


Submitted a bug report. 11529, assigned to you.

There is a sample program and 2 screenshots which show what happens.
No idea why it happens.

Michael.

On Sat, 21 Jun 2008, Jesus Reyes wrote:

> 
> 
> 
> --- El sáb 21-jun-08, Michael Van Canneyt <michael at freepascal.org> escribió:
> 
> > De:: Michael Van Canneyt <michael at freepascal.org>
> > Asunto: [Lazarus] More grid issues
> > A: "Lazarus mailing list" <lazarus at lazarus.freepascal.org>
> > Fecha: sábado, 21 junio, 2008, 9:05 am
> > More issues with grids.
> > 
> > I try to set the color of the edited cell:
> > 
> > Procedure TForm1.StringGrid1SelectEditor(Sender: TObject;
> > aCol, aRow: Integer;
> >   var Editor: TWinControl);
> > begin
> >   Editor.Color:=clTeal;
> > end;
> > 
> > This works, but just the first time. As soon as the second
> > cell is selected,
> > the color stays the background color of the grid ?
> > 
> 
> I can't reproduce here, maybe you want to submit a report with a sample.
> 
> > What I find strange is that this event is called twice:
> > - Once when clicking on a sell (no editing done yet)
> > - Once again when clicking a second time on a cell (to
> > start editing)
> > This is once too much; The first one should not occur,
> > IMHO.
> 
> This is a event to gather something at addressed, it might occur several times, the same as OnSelectCell event. I don't know what are you trying to do, can't advice better.
> 
> > 
> > I've been trying to debug it, but the grids editing
> > code is, well, 
> > discouraging to look at :(
> > 
> > Any hints would be appreciated; If I can be of any help,
> > let me know.
> > 
> > Michael.
> 
> Jesus Reyes A.
> 
> 
>       ____________________________________________________________________________________
> Yahoo! Deportes Beta
> ¡No te pierdas lo último sobre el torneo clausura 2008! Entérate aquí http://deportes.yahoo.com
> 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
> 


More information about the Lazarus mailing list