How do I adjust the size of items in a TListView

0

I would like to ask you about a difficulty I am facing.

TListView is set to Appearance as DynamicAppearance .

I would like to break those products that have additional, for example, the first product has 2 additional and I would like to break the line for each additional and resize the list line.

    
asked by anonymous 22.09.2017 / 15:02

1 answer

0

To break the additional products you can replace the comma with a chr (13) , for example. I do not know if the text is created by you or not, but if not you can use a ReplaceStr (detail, ',', chr (13))

Regarding the height of the item, each TListView item has a Height property that you can change and so some get larger than others. You may be able to count the number of commas or additional products and increase the X% line for each.

    
22.09.2017 / 17:38