TListView with OwnerDraw wrong arrangement? lazarus / 31-LCL ---------------------------------------------------------------------- Alexandr F · 2018-12-25 14:27 I want to use TListView with OwnderDrawItem feature. But I see one trouble: arrangement of icons is different for OwnerDraw = True and OwnerDraw = False. See attahced picture please. On left side Listview.OwnerDraw = False, on right side OwnerDraw = True. You can see arrangement of icons is different. I use run-time icons loading. See attached project example for reference. ---------------------------------------------------------------------- lucamar · 2018-12-25 15:16 I don't understand what you mean (other than it appears to be an empty item in the OwnerDraw=True ListBox). But then, with OwnerDraw it's you who is drawing the items, isn't it? Perhaps it would be more apparent what you mean if your test had at least three or four items+icons. ---------------------------------------------------------------------- Alexandr F · 2018-12-25 15:45 Quote from: lucamar on December 25, 2018, 04:16:13 pmI don't understand what you mean (other than it appears to be an empty item in the OwnerDraw=True ListBox). But then, with OwnerDraw it's you who is drawing the items, isn't it? Perhaps it would be more apparent what you mean if your test had at least three or four items+icons. By default a CustomDraw handler have a DefaultDraw parameter. If this parameter is True, default drawing will be executed after my Custom Draw handler. I expressly remove all my code and use default code only.  If I use more icons they whatever arranged wrong, by bottom side of ListViev.