Fixes crash in TUntabbedNotebook

git-svn-id: trunk@27094 -
This commit is contained in:
sekelsenmat 2010-08-14 07:39:03 +00:00
parent bd13bc5897
commit 99e42b0a93
2 changed files with 9 additions and 0 deletions

View File

@ -330,6 +330,7 @@ type
procedure PageListChange(Ptr: Pointer; AnAction: TListNotification);
protected
function GetObject(Index: Integer): TObject; override;
function GetCount: Integer; override;
public
constructor Create(thePageList: TListWithEvent;
theUNotebook: TUntabbedNotebook);

View File

@ -57,6 +57,14 @@ begin
Result := TCustomPage(fPageList[Index]);}
end;
{------------------------------------------------------------------------------
TUNBPages GetCount
------------------------------------------------------------------------------}
function TUNBPages.GetCount: Integer;
begin
Result := fPageList.Count;
end;
{------------------------------------------------------------------------------
TUNBPages Clear
------------------------------------------------------------------------------}