Autor Beitrag
lemming
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 470

Mac OS 10.3.1
Delphi 6 Pro, Kylix 3
BeitragVerfasst: Do 30.10.03 11:39 
Hi!

Wie kann ich einzelne Wörter oder Zeichen farbig gestallten. Ich bekomm das mit der Demo nciht so ganz hin. Ich mach sonst mehr mit Netzwerk.

-lemmi

Moderiert von user profile iconTino: Topic verschoben; Titel geändert.
Michael Stenzel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 133


D3 Prof, D7 PE
BeitragVerfasst: So 02.11.03 01:53 
Hallo lemming!

Ich hoffe, daß Du die Programmierung des RichEdit meinst. :!:

Du muß erst das zu färbene Wort mit SelStart und SelLength auswählen. Danach kannst Du mit SelAttributes.Color die Farbe setzen.
ausblenden Delphi-Quelltext
1:
2:
3:
Richedit1.SelStart := Position; 
Richedit1.SelLength := Lang; 
Richedit1.SelAttributes.Color:=clRed;


Michael.

Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: So 02.11.03 03:40 
das richedit ist für sowas wie syntax-hilighting nicht so geeignet...
schau dich mal nach ner komponente namens Synedit um...
damit dürfte das einfacher gehn :)
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 02.11.03 05:24 
Und die dürfte auch nur auf ein RichEdit zurückgreifen. Ich kenne kein Windows Control, was dies sonst ermöglichen sollte.
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: So 02.11.03 16:43 
schon möglich, aber wenn es damit einfacher geht :mrgreen:
war etwas dumm von mir ausgedrückt :?
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 03.11.03 10:29 
Luckie hat folgendes geschrieben:
Und die dürfte auch nur auf ein RichEdit zurückgreifen.

Nein, die SynEdit Komponente benutzt nicht das RichEdit Control. Die übernimmt das Zeichnen, etc selbst.

Gruß
Tino
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Mo 03.11.03 17:31 
@Luckie: :P
;)