[Lazarus] TStringGrid: ColCount vs Columns.Count

Jesus Reyes jesusrmx at yahoo.com.mx
Tue Dec 9 05:21:42 CET 2008




--- El lun 8-dic-08, Alexander Klenin <klenin at gmail.com> escribió:

> De:: Alexander Klenin <klenin at gmail.com>
> Asunto: [Lazarus] TStringGrid: ColCount vs Columns.Count
> A: "General mailing list" <lazarus at lazarus.freepascal.org>
> Fecha: lunes, 8 diciembre, 2008, 6:49 pm
> Currently, ColCount and Column.Count values of TStringGrid
> are independent,
> which leads to user errors and confusion.
> It also necessitates many "C <> nil" checks
> throughout the TStringGrid code.
> I propose to implement auto-creation of TGridColimns upon
> every change
> of ColCount, which should eliminate both problems.
> Is it a good idea? Should I enter it into a tracker?
> 
> --
> Alexander S. Klenin
> Insight Experts Ltd.

Indeed it worked that way when custom columns (cc) were implemented, what I didn't like is that it may "cancel" cc without notice, for example when at design time a set of cc are set up and this is why it currently enforce the use of cc to change counts. 

But I don't really see a problem that colcount changes automatically the number of cc if there are some already, if there are no cc I think it should not add any, or what you think about it?

Jesus Reyes A.


      ¡Todo sobre Amor y Sexo!
La guía completa para tu vida en Mujer de Hoy.                       
http://mx.mujer.yahoo.com/




More information about the Lazarus mailing list