diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2009-10-09 13:02:27 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2009-10-09 13:02:27 +0200 |
commit | c18e6db6f73b14a3546a67a89c8834b64aa51a68 (patch) | |
tree | 383583a88adfcddd3bf592b2ba5e1396359aced6 /src | |
parent | 553d26a1e7ef4c385ec9ead27a53289aff6a7fe6 (diff) | |
download | fpGUI-c18e6db6f73b14a3546a67a89c8834b64aa51a68.tar.xz |
New Count property to ImageList class.
Signed-off-by: Graeme Geldenhuys <graeme@mastermaths.co.za>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/fpg_imagelist.pas | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/corelib/fpg_imagelist.pas b/src/corelib/fpg_imagelist.pas index 6f2f4466..1150211a 100644 --- a/src/corelib/fpg_imagelist.pas +++ b/src/corelib/fpg_imagelist.pas @@ -1,7 +1,7 @@ { fpGUI - Free Pascal GUI Library - Copyright (C) 2006 - 2008 See the file AUTHORS.txt, included in this + Copyright (C) 2006 - 2009 See the file AUTHORS.txt, included in this distribution, for details of the copyright. See the file COPYING.modifiedLGPL, included in this distribution, @@ -64,6 +64,7 @@ type function GetFListIndex(AIndex: Integer): Integer; function GetItem(AIndex: integer): TfpgImageItem; procedure SetItem(AIndex: integer; AItem: TfpgImageItem); + function GetCount: integer; public constructor Create; destructor Destroy; override; @@ -72,6 +73,7 @@ type procedure RemoveIndex(AIndex: integer); function GetMaxItem: integer; property Item[AIndex: integer]: TfpgImageItem read GetItem write SetItem; + property Count: integer read GetCount; end; @@ -126,6 +128,11 @@ begin FList.Add(AItem); end; +function TfpgImageList.GetCount: integer; +begin + Result := FList.Count; +end; + constructor TfpgImageList.Create; begin FList := TList.Create; |