mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 08:29:32 +02:00
made sure, that lazarus code uses TImageList.AddDirect
git-svn-id: trunk@9266 -
This commit is contained in:
parent
6746f6ade9
commit
e441b52d38
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user