added GlobalDesignHook GetSelectedComponents

git-svn-id: trunk@2603 -
This commit is contained in:
mattias 2002-08-17 23:41:31 +00:00
parent 78cb32fe74
commit 0f82e5de95

View File

@ -47,6 +47,8 @@ type
procedure Add(AMethod: TMethod);
procedure Insert(Index: integer; AMethod: TMethod);
procedure Move(OldIndex, NewIndex: integer);
procedure RemoveAllMethodsOfObject(AnObject: TObject);
public
property Items[Index: integer]: TMethod read GetItems write SetItems; default;
end;
@ -356,6 +358,17 @@ begin
FItems[NewIndex]:=MovingMethod;
end;
procedure TMethodList.RemoveAllMethodsOfObject(AnObject: TObject);
var
i: Integer;
begin
i:=FCount-1;
while i>=0 do begin
if TObject(FItems[i].Data)=AnObject then Delete(i);
dec(i);
end;
end;
{------------------------------------------------------------------------------
procedure RaiseGDBException(const Msg: string);