创建一个Plain Text Area,能够将输入的内容打印在Text Area中,当内容超过这个文本栏的长度以后,怎样让滚动条自动往下翻到最新的输入内容末尾呢?
| QUOTE (Roronoa @ 2006-01-16, 15:16) |
| i dont know if i get what u mean there but here is the stupid method get the length of the string in the text field e.g. M get the size of the text area e.g. N display the first N chars of string M for the first x second define a loop if u want it to move row by row then display the next N chars from M starting (M- row width) keep doing this until the M- y*rowWidth <= N start from the begining |