From ace2f932cb9a3ecd1be95ca9367cb53be515ce1b Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 28 Jan 2009 01:25:06 +0000 Subject: [PATCH] lcl: set ListView properties before item creation to correctly initialize it - for example notify listview that items will have checkboxes (bug #0013050) git-svn-id: trunk@18467 - --- lcl/include/customlistview.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcl/include/customlistview.inc b/lcl/include/customlistview.inc index 2c6458429d..56cbd2311d 100644 --- a/lcl/include/customlistview.inc +++ b/lcl/include/customlistview.inc @@ -278,6 +278,7 @@ begin end; LVC.SetScrollBars(Self, FScrollBars); LVC.SetViewOrigin(Self, FViewOriginCache) ; + LVC.SetProperties(Self, FProperties); LVC.SetSort(Self, FSortType, FSortColumn); // add items @@ -288,7 +289,6 @@ begin LVC.SetDefaultItemHeight(Self, FDefaultItemHeight); LVC.SetHotTrackStyles(Self, FHotTrackStyles); LVC.SetHoverTime(Self, FHoverTime); - LVC.SetProperties(Self, FProperties); if FSelected <> nil then LVC.ItemSetState(Self, FSelected.Index, FSelected, lisSelected, True);