Autor Beitrag
sam3st
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55

Win XP
D7 Enterprise
BeitragVerfasst: Fr 02.09.05 16:17 
hallo,

ist es möglich, in einem richedit eine zeile mit mehr als einer farbe auszustatten? wenn ja: wie??? habe das bisher noch nicht hinbekommen. gefunden hab ich weder hier noch sonst irgendwo etwas im netz, nur dieselbe unbeantwortete frage....


danke
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Fr 02.09.05 18:43 
Hallo!

Du kannst in einem Richedit auch jedem Buchstaben eine andere Farbe geben. z.B. werden hiermit drei Buchstaben beginnend mit dem zweiten grün:
ausblenden Delphi-Quelltext
1:
2:
3:
  RichEdit1.SelStart := 1; //Startbuchstabe (erster hat Index 0)
  RichEdit1.SelLength := 3; //wieviele Buchstaben?
  RichEdit1.SelAttributes.Color := clGreen; //Farbe setzen


Grüße
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
sam3st Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55

Win XP
D7 Enterprise
BeitragVerfasst: Fr 02.09.05 18:52 
joah danke hab es grad hinbekommen nur jetzt anderes problem, siehe anderes topic...

is natürlich erledigt das hier....

Moderiert von user profile iconChristian S.: Beiträge zusammengefasst