[R] tcltk - text widget with a scrollbar?

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Fri Aug 16 22:22:02 CEST 2002


mmiller3 at iupui.edu (Michael A. Miller) writes:

> > myscr <- tkscrollbar(top, command = function (...) tkyview(...))
> > tkconfigure(mytext, yscrollcommand = function(...) tkset(myscr, ...))
...
> I can scroll around in the widget with my scroll mouse, but using
> the mouse on the scroll bar slider produces this sort of error:
> 
> Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class = "tclObj") : 
>         [tcl] invalid command name "moveto".

I think you need tkyview(mytext,...) in the above. Try looking at the
code for demo(tkfaq) if it still refuses to work.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list