LCL: Implement procedure TMenuItem.Add(const AItems: array of TMenuItem), Issue #19889

git-svn-id: trunk@31975 -
This commit is contained in:
juha 2011-08-13 12:31:37 +00:00
parent 278845f007
commit 67081e51b3
2 changed files with 9 additions and 0 deletions

View File

@ -30,6 +30,14 @@ begin
Insert(GetCount, Item);
end;
procedure TMenuItem.Add(const AItems: array of TMenuItem);
var
i: Integer;
begin
for i := Low(AItems) to High(AItems) do
Add(AItems[i]);
end;
{------------------------------------------------------------------------------
procedure TMenuItem.AddSeparator;
------------------------------------------------------------------------------}

View File

@ -229,6 +229,7 @@ type
function IndexOfCaption(const ACaption: string): Integer; virtual;
function VisibleIndexOf(Item: TMenuItem): Integer;
procedure Add(Item: TMenuItem);
procedure Add(const AItems: array of TMenuItem);
procedure AddSeparator;
procedure Click; virtual;
procedure Delete(Index: Integer);