El mar 5-may-15, Valdas Jankūnas <zmu...@gmail.com> escribió:

>  Asunto: [Lazarus] Strange behavior of AutoSizeColumn in StringGrid
>  A: "General mailing list" <laza...@lazarus.freepascal.org>
>  Fecha: martes, 5 de mayo de 2015, 14:43
>  
>  Hello,
>  
>  situation: GridColumn.Multiline is TRUE and one of
>  StringGrid's cell has 
>  multiline text. If I perform StringGrid.AutosizeColumn[s]
>  then column 
>  width become like all text of cell was in single line
>  (attached test 
>  project: try to press button several times).
>  
>    Is this a Bug?
>  

Well, apparently it could be a bug with a side effect :).

It seems the Multiline property is a Column's Title property not a column 
property
however it is treated as if it is a column property, something that should only 
affect
the title cell but it actually affects the whole column. That's the side effect.

If that is the intended behaviour (Multiline title property is a contribution, 
Werner?) 
then it's OK to me, in that case please try the attached patch and write back 
your results,
here I tested under Windows and it seems to work fine.

Jesus Reyes A.

Attachment: autosizemultiline.diff
Description: Binary data

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to