made sure, that lazarus code uses TImageList.AddDirect

git-svn-id: trunk@9266 -
This commit is contained in:
mattias 2006-05-13 09:13:05 +00:00
parent 6746f6ade9
commit e441b52d38
7 changed files with 7 additions and 7 deletions

View File

@ -208,7 +208,7 @@ procedure TCodeExplorerView.CodeExplorerViewCREATE(Sender: TObject);
DebugLn('TCodeExplorerView.CodeExplorerViewCREATE: ',
' WARNING: icon not found: "',ResName,'"');
Pixmap.LoadFromLazarusResource(ResName);
ImgList.Add(Pixmap,nil)
ImgList.AddDirect(Pixmap,nil)
end;
begin

View File

@ -323,7 +323,7 @@ constructor TfrmCompilerOptions.Create(TheOwner: TComponent);
Pixmap:=TPixmap.Create;
Pixmap.TransparentColor:=clWhite;
Pixmap.LoadFromLazarusResource(ResName);
ImageList.Add(Pixmap,nil)
ImageList.AddDirect(Pixmap,nil)
end;
var Page: integer;

View File

@ -379,7 +379,7 @@ procedure TProjectInspectorForm.SetupComponents;
Pixmap:=TPixmap.Create;
Pixmap.TransparentColor:=clWhite;
Pixmap.LoadFromLazarusResource(ResName);
ImageList.Add(Pixmap,nil)
ImageList.AddDirect(Pixmap,nil)
end;
begin

View File

@ -685,7 +685,7 @@ begin
APixmap.TransparentColor:=clBtnFace;
APixmap.LoadFromLazarusResource(ResName);
Result:=ImgList.Count;
ImgList.Add(APixmap,nil);
ImgList.AddDirect(APixmap,nil);
end;
function TSourceMarks.GetSourceEditor(AMark: TSourceMark): TObject;

View File

@ -479,7 +479,7 @@ begin
if not Bmp.Empty then
begin
Glyph := CreateGlyph(Bmp, ImageList.Width, ImageList.Height, gaNone);
I := ImageList.Add(Glyph, nil);
I := ImageList.AddDirect(Glyph, nil);
New(P);
P^.Bitmap := Bmp;

View File

@ -1245,7 +1245,7 @@ procedure TPackageEditorForm.SetupComponents;
Pixmap:=TPixmap.Create;
Pixmap.TransparentColor:=clWhite;
Pixmap.LoadFromLazarusResource(ResName);
ImageList.Add(Pixmap,nil)
ImageList.AddDirect(Pixmap,nil)
end;
procedure LoadBitBtnGlyph(ABitBtn: TBitBtn; const ResName: string);

View File

@ -274,7 +274,7 @@ procedure TPkgGraphExplorerDlg.SetupComponents;
Pixmap:=TPixmap.Create;
Pixmap.TransparentColor:=clWhite;
Pixmap.LoadFromLazarusResource(ResName);
Result:=ImageList.Add(Pixmap,nil)
Result:=ImageList.AddDirect(Pixmap,nil)
end;
begin