Autor Beitrag
ex4ct
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 67


Delphi 7
BeitragVerfasst: Fr 07.07.06 11:32 
Wie kann man eigentlich eine bestimmte Stelle des Textes im Memo Feld fett machen?

So wirds fett gemacht:
Memo1.Font.Style := [fsBold];

Und so wieder normalisiert:
Memo1.Font.Style := [];

Aber nicht nur eine Stelle, sondern alles! :(


Moderiert von user profile iconraziel: Topic aus Sonstiges (Delphi) verschoben am Sa 08.07.2006 um 09:44
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Fr 07.07.06 11:33 
Mit dem Memo geht das nicht. Nimm ein TRichEdit und guck dir da die Eigenschaft SelStart und SelAtttributes usw. an ;-)

_________________
We are, we were and will not be.
ex4ct Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 67


Delphi 7
BeitragVerfasst: Fr 07.07.06 11:40 
Achso...
Aber SelStart und SelAtttributes konnte ich leider nicht finden!
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Fr 07.07.06 11:42 
Doch, das sind Eigenschaften von TRichedit. Schau mal am besten in die Delphi-Hilfe, oder such danach im Forum, da findet sich bestimmt ein Beipiel-Quellcode dazu ;-)

_________________
We are, we were and will not be.
rd3
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 07.07.06 13:48 
Hi,

im Verzeichnis "Delphi\Demos\RichEdit" findest Du genau, was du brauchst!

Gruß rd3