Autor Beitrag
lexmy3
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 140

WIN 2000 Prof. + Office 2000
Delphi 5 Enterprise
BeitragVerfasst: Mo 28.11.05 12:02 
Hallo, Erste Frage war wohl daneben.

Aber jetzt: Ich möchte nur eine Bestimmte Zeile, ALso Nur die Überschrift fett machen in einem RichEdit.

Bitte helt mir, denn bin schon seit 1 1/2 stunden dran und finde keine Lösung.

also nur diese zugefügte Zeile:
ausblenden Delphi-Quelltext
1:
RichEditGeneral.Lines.Add ('1   General Statement'#13#10);					


mfg
lexmy3
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mo 28.11.05 12:37 
Hallo,

die erste Zeile im Richedit in bold:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
  with RichEdit1 do
    begin
    SetFocus;
    SelStart := 0;
    SelLength := Length(Lines[0]);
    SelAttributes.Style := [fsBold];
    end;


Die hinzugefügte Zeile in bold:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
  with RichEdit1 do
    begin
    SetFocus;
    SelStart := Length(Text);
    SelAttributes.Style := [fsBold];
    Lines.Add('Diese Zeile in bold.');
    SelAttributes.Style := SelAttributes.Style-[fsBold];
    end;

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
lexmy3 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 140

WIN 2000 Prof. + Office 2000
Delphi 5 Enterprise
BeitragVerfasst: Mo 28.11.05 13:11 
Super Danke hast weiter geholfen.

Mfg

Lexmy3