[Lazarus] Lazarus 2 RC3 Bug or my fault?

Werner Pamler werner.pamler at freenet.de
Thu Feb 7 00:15:14 CET 2019


Am 04.02.2019 um 23:28 schrieb Joe via lazarus:

> I have a TListBox called LogBox in a test project and write strings 
> with LogBox.Items.Add(stringvar) to LogBox. But the lines don't follow 
> each other without space. There is space with approximately a half 
> line hight between them. In Delphi, the lines in TListBox follow each 
> other without this space.  Is this a Lazarus bug or did I miss something?

Did you set "Style" to "lbOwnerdrawFixed" and "ItemHeight" to a nonzero 
value? In this case the line height is given by "ItemHeight". Default 
"Style" is "lbStandard" where "ItemHeight" is forced to 0 which means 
that the line height is calculated from the font size.



More information about the lazarus mailing list