You've already forked lazarus-ccr
Fixed loading icons from Laurent Jacques
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@187 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -242,7 +242,16 @@ begin
|
|||||||
begin
|
begin
|
||||||
Icon := TIcon.Create;
|
Icon := TIcon.Create;
|
||||||
try
|
try
|
||||||
|
// First image in std bitmap
|
||||||
Icon.LoadFromFile(FileName);
|
Icon.LoadFromFile(FileName);
|
||||||
|
NewPage := CreatePage(Icon as TBitmap);
|
||||||
|
NewPage.Parent := Self;
|
||||||
|
ActivePage := NewPage;
|
||||||
|
NewPage.Caption := FindNewUniqueName;
|
||||||
|
Change;
|
||||||
|
|
||||||
|
// other image in Bimaps if assigned
|
||||||
|
if Icon.Bitmaps <> nil then
|
||||||
for I := 0 to Pred(Icon.Bitmaps.Count) do
|
for I := 0 to Pred(Icon.Bitmaps.Count) do
|
||||||
begin
|
begin
|
||||||
NewPage := CreatePage(Icon.Bitmaps[I] as TBitmap);
|
NewPage := CreatePage(Icon.Bitmaps[I] as TBitmap);
|
||||||
@ -387,3 +396,4 @@ end;
|
|||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user