Thema: Delphi Richedit Farbe ?

Einzelnen Beitrag anzeigen

marabu

Registriert seit: 6. Apr 2005
10.109 Beiträge
 
#16

Re: Richedit Farbe ?

  Alt 25. Feb 2006, 20:01
Hallo Vader,

gefällt dir das besser?

Delphi-Quellcode:
procedure SetLineColor(re: TRichEdit; const index: Integer; const cl: TColor);
begin
  if index < re.Lines.Count then
  begin
    re.SelStart := re.Perform(EM_LINEINDEX, index, 0);
    re.SelLength := Length(re.Lines[index]);
    re.SelAttributes.Color := cl;
  end;
end;
Grüße vom marabu
  Mit Zitat antworten Zitat