home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / languages / tcl / tk3.3b1 / doc / tk.n < prev    next >
Encoding:
Text File  |  1993-04-01  |  3.0 KB  |  71 lines

  1. '\"
  2. '\" Copyright (c) 1992 The Regents of the University of California.
  3. '\" All rights reserved.
  4. '\"
  5. '\" Permission is hereby granted, without written agreement and without
  6. '\" license or royalty fees, to use, copy, modify, and distribute this
  7. '\" documentation for any purpose, provided that the above copyright
  8. '\" notice and the following two paragraphs appear in all copies.
  9. '\"
  10. '\" IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
  11. '\" FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
  12. '\" ARISING OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
  13. '\" CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  14. '\"
  15. '\" THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
  16. '\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
  17. '\" AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
  18. '\" ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
  19. '\" PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
  20. '\" 
  21. '\" $Header: /user6/ouster/wish/man/RCS/tk.n,v 1.3 93/04/01 09:52:58 ouster Exp $ SPRITE (Berkeley)
  22. '/" 
  23. .so man.macros
  24. .HS tk tk
  25. .BS
  26. '\" Note:  do not modify the .SH NAME line immediately below!
  27. .SH NAME
  28. tk \- Manipulate Tk internal state
  29. .SH SYNOPSIS
  30. \fBtk\fR \fIoption \fR?\fIarg arg ...\fR?
  31. .BE
  32.  
  33. .SH DESCRIPTION
  34. .PP
  35. The \fBtk\fR command provides access to miscellaneous
  36. elements of Tk's internal state.
  37. Most of the information manipulated by this command pertains to the
  38. application as a whole, or to a screen or display, rather than to a
  39. particular window.
  40. The command can take any of a number of different forms
  41. depending on the \fIoption\fR argument.  The legal forms are:
  42. .TP
  43. \fBtk colormodel \fIwindow\fR ?\fInewValue\fR?
  44. If \fInewValue\fR isn't specified, this command returns the current
  45. color model in use for \fIwindow\fR's screen, which will be either
  46. \fBcolor\fR or \fBmonochrome\fR.
  47. If \fInewValue\fR is specified, then it must be either \fBcolor\fR
  48. or \fBmonochrome\fR or an abbreviation of one of them;
  49. the color model for \fIwindow\fR's screen is set to this value.
  50. .RS
  51. .LP
  52. The color model is used by Tk and its widgets to determine whether
  53. it should display in black and white only or use colors.
  54. A single color model is shared by all of the windows managed by one
  55. process on a given screen.
  56. The color model for a screen is set initially by Tk to \fBmonochrome\fR
  57. if the display has four or fewer bit planes and to \fBcolor\fR otherwise.
  58. The color model will automatically be changed from \fBcolor\fR to
  59. \fBmonochrome\fR if Tk fails to allocate a color because all entries
  60. in the colormap were in use.
  61. An application can change its own color model at any time (e.g. it
  62. might change the model to \fBmonochrome\fR in order to conserve
  63. colormap entries, or it might set the model to \fBcolor\fR
  64. to use color on a four-bit display in special circumstances), but
  65. an application is not allowed to change the color model to \fBcolor\fR
  66. unless the screen has at least two bit planes.
  67. .RE
  68.  
  69. .SH KEYWORDS
  70. color model, internal state
  71.