home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / incoming / jstools-.6v3 / jstools- / jstools-tk3.6v3.0 / lib / jdoc / jstools / bindmouse.jdoc < prev    next >
Encoding:
Text File  |  1995-03-14  |  2.5 KB  |  25 lines

  1. {Mouse Bindings
  2. Under Tk 3.6 and earlier, the jstools applications support the following operations with the mouse in text windows and text entry fields:
  3.  
  4. * Clicking mouse button 1 moves the insertion point.  If you've chosen `Typing replaces selection' on the Global Preferences panel, it also clears the selection.
  5.  
  6. * Clicking mouse button 1 with the Control key pressed moves the insertion point, but doesn't clear the selection.  (This doesn't work in one¡line text entry fields.)
  7.  
  8. * Dragging the mouse with mouse button 1 depressed selects the text indicated.  You can drag the mouse off the edge of the window, and the text will scroll to allow you to select text that was initially off the window.
  9.  
  10. * Double¡clicking with mouse button 1 lets you select text by words.  (The definition of a word is slightly different between text windows and entry fields.)
  11.  
  12. * Triple¡clicking with mouse button 1 lets you select entire lines.
  13.  
  14. * Clicking mouse button 2 (or 3) pastes the current selection at the insertion point.  It also sets the input focus, so text you type after will be inserted after the pasted text.
  15.  
  16. * Dragging with mouse button 2 (or 3) causes the contents of the window to scroll quickly; it's an alternative to using a scrollbar.
  17.  
  18. Compatibility
  19. The mouse bindings above are only set by jstools if it's running under version 3.6 or earlier of Tk.  Under Tk 4.0, the jstools libraries will leave Tk's default mouse bindings alone, but they're fairly similar to what's described above.  See the Tk 4.0 text(n) and entry(n) manual pages for more details.
  20.  
  21. Thanks
  22. Thanks to Tom Phelps <phelps@cs.berkeley.edu> for the procedures that allow the middle button to paste (on a click) as well as scroll (on a drag).
  23.  
  24. Thanks to Paul Raines <raines@cgibm1.slac.stanford.edu> for the procedures that allow scrolling during a selection.
  25. } {{{jdoc:xref:link {4.106 4.124}} {jdoc:xref:manpage {19.254 19.258 19.266 19.271}} {richtext:font:roman {2.0 2.30 2.37 6.35 6.42 18.0 19.0 19.41 19.48 19.120 19.127 19.254 19.258 19.266 19.271 21.0 22.0 22.21 22.45 24.22 24.55 25.0}} {richtext:font:bold {2.30 2.37 6.35 6.42 19.41 19.48 19.120 19.127}} {richtext:font:typewriter {19.254 19.258 19.266 19.271 22.21 22.45 24.22 24.55}} {richtext:font:heading0 {1.0 2.0}} {richtext:font:heading1 {18.0 19.0 21.0 22.0}} {jdoc:link:panels/prefs.jdoc {4.106 4.124}} {jdoc:manpage:entry {19.266 19.271}} {jdoc:manpage:text {19.254 19.258}}} {{matchend 6.23} {abbrevstart 14.174} {abbrevend 14.179} {insert 1.0} {matchstart 6.17} {anchor 14.179} {current 2.137}}}