Hi there,
Trying to display a bitmap from within a TImageList to a BitBtn (or TImage). All works fine but one thing: the transparent color is replaced with white color instead of being transparent.
Here's my code:
--------------------------------------------------
var pic: TBitmap;
begin
pic := TBitmap.Create;
img.GetBitmap(1, pic);
// Following lines doesn't change anything...
with pic do
begin
Transparent := True;
TransParentColor := clFuchsia;
TransparentMode := tmAuto;
end;
btn.Glyph := pic;
pic.Free;
end;
--------------------------------------------------
Any ideas?
Thanks in advance for reply,
Rej Cloutier
Trying to display a bitmap from within a TImageList to a BitBtn (or TImage). All works fine but one thing: the transparent color is replaced with white color instead of being transparent.
Here's my code:
--------------------------------------------------
var pic: TBitmap;
begin
pic := TBitmap.Create;
img.GetBitmap(1, pic);
// Following lines doesn't change anything...
with pic do
begin
Transparent := True;
TransParentColor := clFuchsia;
TransparentMode := tmAuto;
end;
btn.Glyph := pic;
pic.Free;
end;
--------------------------------------------------
Any ideas?
Thanks in advance for reply,
Rej Cloutier