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.

--
_______________________________________________
lazarus mailing list
[email protected]
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to