[R] tcltk - automatically moving cursor to last line of tktext box - how?

2005-09-02 Thread Søren Højsgaard
Hi; I have a program which writes lines to a tktext box (of height, say, 10) 
with
  tkinsert(txto, end, paste(so,\n))
I would like my program to be such that it automatically scrolls down through 
the text box when it is full so that I always see the last 10 lines written. 
Can anyone help on this?
Best regards
Søren

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] tcltk - automatically moving cursor to last line of tktext box - how?

2005-09-02 Thread Peter Dalgaard
Søren Højsgaard [EMAIL PROTECTED] writes:

 Hi; I have a program which writes lines to a tktext box (of height, say, 10) 
 with
   tkinsert(txto, end, paste(so,\n))
 I would like my program to be such that it automatically scrolls down through 
 the text box when it is full so that I always see the last 10 lines written. 
 Can anyone help on this?
 Best regards
 Søren

How about 

tksee(txto, end)

or maybe

tkyview(txto, end - 10 lines)

-- 
   O__   Peter Dalgaard Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark  Ph:  (+45) 35327918
~~ - ([EMAIL PROTECTED])  FAX: (+45) 35327907

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html