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 / jtkversion.tcl.jdoc < prev    next >
Encoding:
Text File  |  1995-03-14  |  5.6 KB  |  67 lines

  1. {jtkversion.tcl
  2.  
  3. Introduction
  4. The jtkversion.tcl library is distributed as part of the jstools package.  It consists of procedures to make it easier to write scripts that will work under both Tk 3 and Tk 4.
  5.  
  6. This document describes jtkversion.tcl version 3.6/3.0.
  7.  
  8. Usage
  9. Accessing the Library
  10. In order to use the jtkversion.tcl library, it (and any other libraries it depends on) must be in your Tcl auto_path, described in tclvars(n).  Information about how to arrange that, and other conventions common to the jstools libraries, is in the Usage section of The jstools Libraries.
  11.  
  12. Credits and Copyright
  13. Author
  14. Jay Sekora 
  15. js@bu.edu
  16. http://shore.net/~js/
  17.  
  18. Copyright
  19. The library is copyright ⌐ 1992-1994 by Jay Sekora, but may be freely copied and modified for non¡commercial purposes.  (Please contact me if you want to use it for a commercial purpose, this may be OK under some circumstances.)
  20.  
  21. Overview
  22. Procedures
  23. j:tk4 - perform an action if running under Tk version 4 or greater
  24. j:tk3 - perform an action if running under Tk version 3 or earlier
  25. j:current_focus - return current focus
  26.  
  27. See Also
  28.     jtkutils.tcl
  29.  
  30. j:tk4
  31. Usage
  32.     j:tk4 [command]
  33.  
  34. Description
  35. This procedure executes command (in the calling procedure's stack frame) if and only if running under Tk version 4 or later.  It returns 1 if the command was executed (i.e., if the version of Tk it's running under is 4 or greater) and 0 otherwise.  If command is omitted, no action is performed, but the return value still indicates what version of Tk is being used.
  36.  
  37. j:tk3
  38. Usage
  39.     j:tk3 [command]
  40.  
  41. Description
  42. This procedure executes command (in the calling procedure's stack frame) if and only if running under Tk version 3 or earlier.  It returns 1 if the command was executed (i.e., if the version of Tk it's running under is 3 or less) and 0 otherwise.  If command is omitted, no action is performed, but the return value still indicates what version of Tk is being used.
  43.  
  44. j:current_focus
  45. Usage
  46.     j:current_focus
  47.  
  48. Description
  49. This procedure simply returns the window that currently has the focus.  It hides differences in the focus(n) command between Tk versions 3 and 4.
  50.  
  51. Unfortunately, it also hides Tk 4's ability to support windows on multiple displays in the same application; under Tk 4, it always returns the window with the focus on the same display as the Tk main window, `.'.
  52.  
  53. Evolution
  54. Feel free to report bugs (and feature requests) to me, <js@bu.edu>, and I will try to deal with them.  Also, feel free to fix bugs or add features on your own and let me know how you did it.
  55.  
  56. Bugs and Misfeatures
  57. * All these procedures are really misfeatures. :-)  They'll probably go away in the future as Tk 4 becomes more prevalent and Tk 3 dies out.
  58.  
  59. * As mentioned, j:current_focus doesn't handle multiple displays.
  60.  
  61. Future Directions
  62. * These procedures are a stop¡gap solution to get the jstools applications and libraries, which are written for Tk 3.6, to run under Tk 4.0.  In the future jstools will be upgraded to support Tk 4.0 directly, so these procedures may go away.
  63.  
  64. Changes
  65. * These procedures are new in version 3.6/3.0.
  66.  
  67. } {{{jdoc:xref:link {4.57 4.64 10.215 10.236 10.244 10.261 10.265 10.286 23.0 23.5 24.0 24.5 25.0 25.15 28.1 28.13 59.16 59.31}} {jdoc:xref:manpage {10.131 10.138 49.100 49.105}} {jdoc:anchor:anchorname {3.0 4.0 8.0 9.0 12.0 13.0 21.0 22.0 30.0 31.0 37.0 38.0 44.0 45.0 53.0 54.0}} {richtext:font:roman {2.0 3.0 4.0 4.4 4.18 4.57 4.64 6.24 6.38 8.0 10.0 10.20 10.34 10.107 10.116 10.131 10.138 10.219 10.226 10.248 10.253 10.265 10.286 12.0 14.0 15.0 15.9 16.0 16.21 18.0 19.0 21.0 23.5 24.0 24.5 25.0 25.15 27.0 28.0 28.1 28.13 30.0 32.0 32.1 32.7 32.8 32.15 34.0 35.0 35.24 35.31 35.137 35.138 35.252 35.259 37.0 39.0 39.1 39.7 39.8 39.15 41.0 42.0 42.24 42.31 42.139 42.140 42.251 42.258 44.0 46.0 46.1 46.16 48.0 49.0 49.100 49.105 51.209 51.210 53.0 54.0 54.55 54.66 56.0 57.0 59.16 59.31 61.0 61.17 62.54 62.61 62.156 62.163 64.0 64.7 67.0}} {richtext:font:italic {32.8 32.15 35.24 35.31 35.252 35.259 39.8 39.15 42.24 42.31 42.251 42.258}} {richtext:font:bold {4.4 4.18 4.57 4.64 6.24 6.38 10.20 10.34 10.219 10.226 28.1 28.13 62.54 62.61 62.156 62.163}} {richtext:font:bolditalic {10.248 10.253 10.265 10.286}} {richtext:font:typewriter {10.107 10.116 10.131 10.138 15.0 15.9 16.0 16.21 23.0 23.5 24.0 24.5 25.0 25.15 32.1 32.7 35.137 35.138 39.1 39.7 42.139 42.140 46.1 46.16 49.100 49.105 51.209 51.210 54.55 54.66 59.16 59.31}} {richtext:font:heading0 {1.0 2.0}} {richtext:font:heading1 {3.0 4.0 8.0 9.0 12.0 13.0 21.0 22.0 30.0 31.0 37.0 38.0 44.0 45.0 53.0 54.0}} {richtext:font:heading2 {9.0 10.0 13.0 14.0 18.0 19.0 22.0 23.0 27.0 28.0 31.0 32.0 34.0 35.0 38.0 39.0 41.0 42.0 45.0 46.0 48.0 49.0 56.0 57.0 61.0 61.17 64.0 64.7}} {{} {12.0 20.0 22.0 22.10}} {jdoc:link:jstools.jdoc {4.57 4.64}} {jdoc:manpage:tclvars {10.131 10.138}} {jdoc:link:jslibraries.jdoc#Usage {10.244 10.261}} {jdoc:link:jslibraries.jdoc {10.265 10.286}} {jdoc:anchorname:Evolution {53.0 54.0}} {jdoc:anchorname:Credits_and_Copyright {12.0 13.0}} {jdoc:anchorname:Introduction {3.0 4.0}} {jdoc:anchorname:Usage {8.0 9.0}} {jdoc:link:jslibraries.tcl {10.215 10.236}} {jdoc:anchorname:Overview {21.0 22.0}} {jdoc:link:jtkutils.tcl.jdoc {28.1 28.13}} {jdoc:link:#j:tk4 {23.0 23.5}} {jdoc:link:#j:tk3 {24.0 24.5}} {jdoc:link:#j:current_focus {25.0 25.15 59.16 59.31}} {jdoc:anchorname:j:tk4 {30.0 31.0}} {jdoc:anchorname:j:tk3 {37.0 38.0}} {jdoc:manpage:focus {49.100 49.105}} {jdoc:anchorname:j:current_focus {44.0 45.0}}} {{abbrevstart 4.171} {matchend 62.18} {del_from 67.0} {richptr 53.0} {abbrevend 4.175} {insert 1.0} {emacs_mark 67.0} {anchor 6.54} {matchstart 62.8} {del_to 67.0} {current 1.14}}}