[Lazarus] StringGrid header row is always blank at runtime?

Jesus Reyes jesusrmx at yahoo.com.mx
Wed Oct 6 18:32:55 CEST 2010



--- El mié 6-oct-10, Graeme Geldenhuys <graemeg.lists at gmail.com> escribió:

> 
> Clearing the columns also looses the rowcount. Is this a
> bug too?
> 

Initially it supposed to work that way so in this case grid's mental lapses are not a bug, but I'm open to change it if people need it.

> 
> I tried your suggested patch, but that isn't the behaviour
> I was
> looking for. But thanks for that, I found another bug in
> the
> StringGrid mediator. The last column should only fill the
> remainder of
> the grid if the grid content is smaller than the grid
> width. So if the
> content is large, a scrollbar must appear. The "auto sizing
> of last
> column" feature you mentioned (and the bug I spotted)
> resized the
> column, ignoring the developers preferred size and makes
> sure no
> scrollbar appears. This was wrong - developers preferred
> column size
> takes preference.

oh, then I misunderstood the purpose.

> 
> 
> Another new bahavour in the grid which wasn't there before
> (so not
> sure if it is a bug too). When you scroll horizontally in
> the
> stringgrid. Just before you reach the end of the last
> column, the grid
> jumps to the left, leaving a large gap after the last
> column. This
> doesn't look right, so i think this is a bug too?

That I remember it works this way since the beginning so it's not a bug,  but recently the grid was improved to do not scroll unnecessarily (http://bugs.freepascal.org/view.php?id=16102) and I think this can be improved too.

> 
> -- 
> Regards,
>   - Graeme -
> 

Jesus Reyes A.


      




More information about the Lazarus mailing list