fixed CachedDataSize for customlistbox from Vincent

git-svn-id: trunk@4932 -
This commit is contained in:
mattias 2003-12-21 21:10:58 +00:00
parent c8a8052bd5
commit 7660812e1d

View File

@ -382,7 +382,7 @@ begin
inherited Create(AOwner);
fCompStyle := csListBox;
FBorderStyle:= bsSingle;
FItems := TExtendedStringList.Create(SizeOf(TCustomListBoxItemRecord));
FItems := TExtendedStringList.Create(GetCachedDataSize);
FCacheValid := True;
FItemIndex:=-1;
FCanvas := TControlCanvas.Create;