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 ? 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. 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. _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
