LCL: TCustomImageList: replaced notes with exceptions

git-svn-id: trunk@14020 -
This commit is contained in:
mattias 2008-02-07 18:45:49 +00:00
parent b72236c15c
commit 8d1143faeb
2 changed files with 6 additions and 4 deletions

View File

@ -146,7 +146,7 @@ type
function GetReferenceHandle: THandle; override;
procedure Initialize; virtual;
procedure DefineProperties(Filer: TFiler); override;
procedure SetWidthHeight(NewWidth,NewHeight: integer); virtual;
procedure SetWidthHeight(NewWidth, NewHeight: integer); virtual;
function WSCreateReference(AParams: TCreateParams): PWSReference; override;

View File

@ -116,7 +116,8 @@ begin
end;
end
else begin
{$note implement}
// ToDo:
raise Exception.Create('TCustomImageList.AddImages not implemented yet for other Width/Height');
end;
end;
@ -1295,13 +1296,14 @@ begin
SetWidthHeight(Value,Height);
end;
procedure TCustomImageList.StretchDraw(Canvas: TCanvas; Index: Integer; ARect: TRect; Enabled: Boolean);
procedure TCustomImageList.StretchDraw(Canvas: TCanvas; Index: Integer;
ARect: TRect; Enabled: Boolean);
var
bmp: TBitmap;
begin
if (FCount = 0) or (Index >= FCount) then Exit;
{$note implement}
// ToDo: accelerate
// temp workaround
bmp := TBitmap.Create;
GetBitmap(Index, bmp);