home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ttttkkkk((((nnnn)))) TTTTkkkk (((( )))) ttttkkkk((((nnnn))))
-
-
-
- _________________________________________________________________
-
- NNNNAAAAMMMMEEEE
- tk - Manipulate Tk internal state
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ttttkkkk _o_p_t_i_o_n ?_a_r_g _a_r_g ...?
- _________________________________________________________________
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The ttttkkkk command provides access to miscellaneous elements of
- Tk's internal state. Most of the information manipulated by
- this command pertains to the application as a whole, or to a
- screen or display, rather than to a particular window. The
- command can take any of a number of different forms
- depending on the _o_p_t_i_o_n argument. The legal forms are:
-
- ttttkkkk ccccoooolllloooorrrrmmmmooooddddeeeellll _w_i_n_d_o_w ?_n_e_w_V_a_l_u_e?
- If _n_e_w_V_a_l_u_e isn't specified, this command returns the
- current color model in use for _w_i_n_d_o_w's screen, which
- will be either ccccoooolllloooorrrr or mmmmoooonnnnoooocccchhhhrrrroooommmmeeee. If _n_e_w_V_a_l_u_e is
- specified, then it must be either ccccoooolllloooorrrr or mmmmoooonnnnoooocccchhhhrrrroooommmmeeee
- or an abbreviation of one of them; the color model for
- _w_i_n_d_o_w's screen is set to this value.
-
- The color model is used by Tk and its widgets to
- determine whether it should display in black and white
- only or use colors. A single color model is shared by
- all of the windows managed by one process on a given
- screen. The color model for a screen is set initially
- by Tk to mmmmoooonnnnoooocccchhhhrrrroooommmmeeee if the display has four or fewer
- bit planes and to ccccoooolllloooorrrr otherwise. The color model
- will automatically be changed from ccccoooolllloooorrrr to mmmmoooonnnnoooocccchhhhrrrroooommmmeeee
- if Tk fails to allocate a color because all entries in
- the colormap were in use. An application can change
- its own color model at any time (e.g. it might change
- the model to mmmmoooonnnnoooocccchhhhrrrroooommmmeeee in order to conserve colormap
- entries, or it might set the model to ccccoooolllloooorrrr to use
- color on a four-bit display in special circumstances),
- but an application is not allowed to change the color
- model to ccccoooolllloooorrrr unless the screen has at least two bit
- planes.
-
-
- KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
- color model, internal state
-
-
-
-
-
-
-
-
- Page 1 (printed 7/23/95)
-
-
-
-