mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 23:59:12 +02:00
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:
parent
80e57ea4cb
commit
ace2f932cb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user