home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / tcl / 2243 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1010 b   |  30 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!cs.utexas.edu!torn!nott!bnrgate!bgtys9!bnr!tewei
  3. From: tewei@bnr.ca (Te-Wei Sun)
  4. Subject: Automatic Scrolling
  5. Message-ID: <1992Dec24.011953.2348@bnr.ca>
  6. Keywords: scroll
  7. Sender: tewei@bnr (Te-Wei Sun)
  8. Organization: Bell-Northern Research, Ottawa, Ontario, CANADA
  9. Date: Thu, 24 Dec 92 01:19:53 GMT
  10. Lines: 18
  11.  
  12. Hi,
  13.  
  14. I am trying to implement automatic scrolling for scrollable canvas.
  15. Instead of using the scroll bar, the canvas will be scrolling when
  16. the mouse pointer is outside of the canvas. (The canvas will scroll
  17. to the opposite direction of the location of the mouse pointer.)
  18. (This feature is great when you want to drag a widget across a
  19. scrollable canvas, so you can always see the widget at the edge
  20. of the canvas.)
  21.  
  22. I have tried to implement this feature through bindings. However
  23. it does not work out nicely, since the events are not repeated.
  24.  
  25. Has someone tried to accomplish similar task before?
  26. Any input would be appreciated.
  27.  
  28. Te-Wei Sun
  29. tewei@bnr.ca
  30.