This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.
LMD 2024 TLMDSpeedButton certain images are not displayed
If I assign certain images to the glyph via Objebtinspector or from an LMDBitmapList, the image remains empty.
It works with the old 2019 version.

Comments
I have now found a solution myself:
procedure TLMDGlyph.UpdateMaster;done: Boolean;
BMP: TBitmap;// BS 17.07.2025
begin
done := False;
if Assigned(FOnGetBitmap) then
begin
FMaster.Assign(nil); // Clear for sure.
FOnGetBitmap(Self, FMaster, done);
end;
if not done then
begin
if FGlyph.PixelFormat = pf32bit then // BS 17.07.2025
begin
BMP := TBitmap.Create(FGlyph.Width, FGlyph.Height);
try
Bmp.Canvas.Draw(0,0, FGlyph);
FMaster.Assign(Bmp);
finally
Bmp.Free;
end;
end
else
FMaster.Assign(FGlyph);
FMaster.AlphaFormat := afDefined;
end;
end;