a sample
procedure TForm1.Button3Click(Sender
var s : String;
begin
s := 'jone: how are you?';
richedit1.Lines.add(''); //new Line
richedit1.SelStart := length(richedit1.Text); //to end of text
richedit1.SelAttributes.Co
richedit1.SelText := copy(s,1,pos(':',s));
richedit1.SelStart := length(richedit1.Text); //to end of text
richedit1.SelAttributes.Co
richedit1.SelText := copy(s,pos(':',s)+1,maxLon
richedit1.SelStart := length(richedit1.Text); //to end of text
richedit1.selattributes := Richedit1.DefAttributes; //reset selAttributes
end;
meikl ;-)
Main Topics
Browse All Topics





by: esoftbgPosted on 2004-05-14 at 02:14:33ID: 11066481
You can do that using TRichEdit