D Dale46 Unregistered / Unconfirmed GUEST, unregistred user! 2001-01-17 #1 程序通过RichEdit1.Lines.Append添加信息到RichEdit1中 如何通过程序控制RichEdit的ScrollBar? 使最新添加的行始终显示在RichEdit1中.
E eYes. Unregistered / Unconfirmed GUEST, unregistred user! 2001-01-18 #2 RichEdit1.SelStart := Length(RichEdit1.Lines.Text);
D Dale46 Unregistered / Unconfirmed GUEST, unregistred user! 2001-01-18 #3 找到答案了 //auto scrool RichEdit1.SelLength := 0; currentline := Richedit1.Perform(EM_LINEFROMCHAR, Richedit1.SelStart, 0 ); Richedit1.SelStart := richEdit1.perform( EM_LINEINDEX, currentline+1, 0 ); RichEdit1.Perform( EM_SCROLLCARET, 0, 0 );
找到答案了 //auto scrool RichEdit1.SelLength := 0; currentline := Richedit1.Perform(EM_LINEFROMCHAR, Richedit1.SelStart, 0 ); Richedit1.SelStart := richEdit1.perform( EM_LINEINDEX, currentline+1, 0 ); RichEdit1.Perform( EM_SCROLLCARET, 0, 0 );