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 -
This commit is contained in:
paul 2009-01-28 01:25:06 +00:00
parent 80e57ea4cb
commit ace2f932cb

View File

@ -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);