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.

TLMDButton.Glyph

Ich habe gerade von der 2018 auf die 2019 umgestellt und dabei folgendes Problem festgestellt.
Das setzen von Glyph wird in der aktuellen Version ignoriert. Bei der Zuweisung im OI als auch zur Laufzeit wird Glyph in:
procedure TLMDCustomButton.UpdateGlyphFromIML;
var
  tmp:TBitmap;
begin
  if FGlyphKind <> gkCustom then
    Exit;

  FGlyphUpdating := True;
  try
    if not IMLEmpty then
    begin
      tmp:=TBitmap.Create;
      try
        LMDIMLItemBitmap(ImageList, ListIndex, ImageIndex, tmp);
        TLMDGlyph(FGlyph).Glyph := tmp;
      finally
        tmp.Free;
      end;
    end
    else
     TLMDGlyph(FGlyph).Glyph := nil;
  finally
    FGlyphUpdating := False;
  end;
end;



immer auf nil gesetzt. Glyph kann nur noch per Images zugewiesen werden.

Gruß Bernd

Comments

  • Already working on that. Initial problem was with new TVirtualImageList, which do not report all its real changes via TChangeLink (bug in Delphi).
  • Fixed in our latest 2019.7 release.
  • Danke, es funktioniert wieder.

    Was mir schon seit der 2015 Installation immer wieder auffällt:
    Die Datei source\strings\ger\LMDSedConst.pas enthält doppelte Bezeichner
    Zeile 328  SLMDSedLoadSyntaxSchemes = 'Load syntax schemes...';
    Zeile 329  SLMDSedLoadColorSchemes = 'Load color schemes...';

    Gruß Bernd
Sign In or Register to comment.