Forum: Sonstige Fragen zu Delphi
Delphi
by Pseudemys Nelsoni,
25. Jan 2004
jo, mirage, text bezieht sich auf RichEdit.Text, das AText auf meinen string, danke;)
Forum: Sonstige Fragen zu Delphi
Delphi
by Pseudemys Nelsoni,
25. Jan 2004
hä?...ich hab es zwar raus, ich weiss aber nicht warum!
also wenn ich meine funktion durch:
procedure AddColoredLine(ARichEdit: TRichEdit; AText: string; AColor: TColor);
begin
with ARichEdit do
begin
SelStart:=Length( Text);
SelAttributes.Color:=AColor;
Forum: Sonstige Fragen zu Delphi
Delphi
by Pseudemys Nelsoni,
25. Jan 2004
hoi,
ich habe das problem das bei folgendem code, immer nur das erste Add die zeile farbig macht, das nächste ist dann wieder standard farbe. ich hatte das ganze so:
procedure RECL(RE: TRichEdit; s: string; c: TColor);
begin
with RE do
begin
SelStart := Length(s);
SelAttributes.Color := c;