Autor Beitrag
Jagg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 635



BeitragVerfasst: Mi 02.07.03 14:43 
Hallo !

Ich habe ein Chatproggi gechrieben,jetzt möchte ich,das der Text den ich versende als Farbe "blau" gesendet wird und der Text den ich empfange als Farbe "rot" empfange !

Hier ist mal ein Code für Senden :
ausblenden Delphi-Quelltext
1:
2:
3:
4:
Edit1.Text := 'Hallo,das ist ein Test';
NewString := 'Martin';
NMMsg1.PostIt (Time+' '+'<'+NewString+'>'+' : '+Edit1.Text);
Memo1.Lines.Add (Time+' '+'<'+NewString+'>'+' : '+Edit1.Text);

Hier ist mal ein Code für Empfangen :
ausblenden Delphi-Quelltext
1:
2:
3:
Memo1.Lines.Append (sMsg);
FlashWindow(Handle,True);
Flashwindow(Application.Handle,True);

sMsg = Text von Empfänger !

....und das alles wird in einem MemoFeld angezeigt !
Könnt ihr mir helfen ???

Jagg !

Moderiert von user profile iconTino: Code- durch Delphi-Tags ersetzt.
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mi 02.07.03 15:03 
Hi,

benutze statt der TMemo Komponente die TRichEdit Komponente. Damt kannst du die Farben selbst bestimmen. Such mal hier im Forum nach tRichEdit. Dann solltest du mehrere Beispiele finden wie man die Farbe setzt.

Gruß
Tino
Jagg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 635



BeitragVerfasst: Mi 02.07.03 15:22 
danke
FriFra
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Mo 07.07.03 14:12 
Also ich habe für ein Chatprogi ein TWebBrowser verwendet. Ich schreibe den Text über eine JavaScript-Funktion dynamisch in das Chatfenster... so habe ich auch die Möglichkeit Emoticons ( :D , :shock: , etc. ) automatisch als animiertes Gif anzuzeigen... so etwas sollte mit einen TRichEdit nur sehr schwer bzw. garnicht möglich sein.

_________________
Michael
(principal certified lotus professional - developer)