TMemo, TRichEdit 技巧

1 篇文章 / 0 new
author
TMemo, TRichEdit 技巧
TRichEdit 字型屬性控制方式
    richedit.SelStart := length(messBox.Lines.Text);
    richedit.SelAttributes.Charset := DEFAULT_CHARSET;
    richedit.SelAttributes.Color := clAqua;
    ...
    richedit.SelText := data+#13#10;

將游標移至最後面方式
    SendMessage(richedit.handle, EM_SCROLLCARET,0,0);
Free Web Hosting