例如:第一行是红色,第二行是黄色

解决方案 »

  1.   

    好兄弟,能给我源代码吗?我要.
    [email protected]
      

  2.   

    收到,但是这个控件好像不太让我满意。就Memo能办到吗?
      

  3.   

    据我所知不行,用 Richedit 吧
      

  4.   

    我还是不太懂:(
    能给出Richedit改变不同行颜色的一个实例给我吗?
      

  5.   

    procedure TForm1.Button1Click(Sender: TObject);begin
      with RichEdit1.SelAttributes do
      begin
        Color := clRed;
        Height := Height + 5;
      end;
      RichEdit1.Lines.Add('This line of text will be red.');
    end;
      

  6.   

    嗯,用RichEdit搞定了。谢谢大家