Y yuking_cc Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-02 #1 请教各位怎样将memo控件中的指定字符变颜色显示?急!谢了!
H HunterTeam Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-02 #2 改用RichEdit,Memo不行。 RichEdit1.SelAttributes.Color := clRed;
H HeyTommy Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-04 #3 to HunterTeam: 你这样是把所有的字的颜色都设置为红的了吧?
M misaiya Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-05 #6 用RICHEDIT 好实现 给你一段代码: with RichEdit1 do begin SelStart :=FindText('word',0,GetTextLen,[stWholeWord]); SelLength := 4; // select the word SelAttributes.color:=clBlue; SelLength:=0; // de-select the word end;
用RICHEDIT 好实现 给你一段代码: with RichEdit1 do begin SelStart :=FindText('word',0,GetTextLen,[stWholeWord]); SelLength := 4; // select the word SelAttributes.color:=clBlue; SelLength:=0; // de-select the word end;