implemented TCustonListView.Clear (issue #1347)

git-svn-id: trunk@7972 -
This commit is contained in:
vincents 2005-10-17 21:47:18 +00:00
parent 418158b975
commit a229e968b9
2 changed files with 6 additions and 0 deletions

View File

@ -889,6 +889,7 @@ type
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
procedure BeginUpdate;
procedure Clear;
procedure EndUpdate;
function FindCaption(StartIndex: Integer; Value: string; Partial, Inclusive, Wrap: Boolean; PartStart: Boolean = True): TListItem;
property BoundingRect: TRect read GetBoundingRect;

View File

@ -392,6 +392,11 @@ begin
then TWSCustomListViewClass(WidgetSetClass).BeginUpdate(Self);
end;
procedure TCustomListView.Clear;
begin
FListItems.Clear;
end;
{------------------------------------------------------------------------------}
{ TCustomListView EndUpdate }
{------------------------------------------------------------------------------}