Autor Beitrag
cromos
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 219


Delphi 7
BeitragVerfasst: Mo 08.09.03 14:14 
Hallo

ich fürge einem TRichEdit zur Laufzeit Strings hinzu. Wenn ich
ausblenden Delphi-Quelltext
1:
2:
3:
rtf1.Font.Style := [fsBold];
      rtf1.font.Size := 10;
      rtf1.Lines.Add('Test');


schreibe dann wird die Schrift für das ganze RichEdit Bold und in der Grösse 10 dargestellt.

Wie kann ich aber einen String 'Test" mit bold und Grösse 10 und darunter einen anderen String 'Test 2' mit der grösse 8 setzen??

Gruss
Cromos
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 08.09.03 14:29 
cromos Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 219


Delphi 7
BeitragVerfasst: Mo 08.09.03 14:43 
Zitat:

SelAttributes, SelStart, SelLength


Das bringt mir ja nichts, da ich ja keinen Text Markieren will oder so.
Ich will einfach per Laufzeit einen String hinzufügen der einen andere Texteigenschaft besitzt.
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mo 08.09.03 14:51 
cromos hat folgendes geschrieben:
Das bringt mir ja nichts, da ich ja keinen Text Markieren will oder so.

Du musst aber diese Eigenschaften benutzen. Such einfach mal hier im Forum nach den o. g. Wörtern.

Gruß
Tino
barfuesser
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 324



BeitragVerfasst: Mo 08.09.03 16:08 
Tino hat folgendes geschrieben:
Du musst aber diese Eigenschaften benutzen.

Meines Wissens könnte er sich auch mit rtf befassen und die Tags selbst einfügen.

barfuesser
cromos Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 219


Delphi 7
BeitragVerfasst: Mo 08.09.03 22:35 
Danke,

habs geschaft.

Gruss
Cromos