Thema: Dry-Problem

Einzelnen Beitrag anzeigen

CarlAshnikov

Registriert seit: 18. Feb 2011
Ort: Erfurt
108 Beiträge
 
Delphi XE5 Enterprise
 
#5

AW: Dry-Problem

  Alt 23. Jul 2015, 14:51
Geht das in die richtige Richtung?

Delphi-Quellcode:
procedure TJavaScriptAttributsFrame.AddAttribute(var AAttrib: TSynHighlighterAttributes; const AName: string);
begin
  AAttrib:= TSynHighlighterAttributes.Create;
  FJavaScriptAttributsList.Add(AAttrib);
  CmbxAttributes.Items.AddObject(AName,TObject(AAttrib));
  Application.ProcessMessages;
end;

procedure TJavaScriptAttributsFrame.AddAttributes;
begin
  AddAttribute(FSpaceAttri, 'Leerzeichen');
  AddAttribute(FStringAttri, 'Strings');
  AddAttribute(FSymbolAttri, 'Symbole');
end;
Sebastian
Das kann ja wohl nicht var sein!
  Mit Zitat antworten Zitat