Tk_SetWindowVisual man page on OpenServer

Man page or keyword search:  
man Server   5388 pages
apropos Keyword Search (all sections)
Output format
OpenServer logo
[printable version]

Tk_SetWindowVisual(3)	     Tk Library Procedures	 Tk_SetWindowVisual(3)

______________________________________________________________________________

NAME
       Tk_SetWindowVisual - change visual characteristics of window

SYNOPSIS
       #include <tk.h>

       int
       Tk_SetWindowVisual(tkwin, visual, depth, colormap)

ARGUMENTS
       Tk_Window       tkwin	  (in)	    Token for window.

       Visual	       *visual	  (in)	    New	 visual type to use for tkwin.

       int	       depth	  (in)	    Number of bits per	pixel  desired
					    for tkwin.

       Colormap	       colormap	  (in)	    New colormap for tkwin, which must
					    be	compatible  with  visual   and
					    depth.
_________________________________________________________________

DESCRIPTION
       When  Tk	 creates a new window it assigns it the default visual charac-
       teristics (visual, depth, and colormap)	for  its  screen.   Tk_SetWin-
       dowVisual  may  be  called  to change them.  Tk_SetWindowVisual must be
       called before the window has actually been created in  X	 (e.g.	before
       Tk_MapWindow  or	 Tk_MakeWindowExist  has been invoked for the window).
       The safest thing is to call Tk_SetWindowVisual immediately after	 call-
       ing   Tk_CreateWindow.	If  tkwin  has	already	 been  created	before
       Tk_SetWindowVisual is called then it returns 0  and  doesn't  make  any
       changes;	  otherwise  it	 returns  1 to signify that the operation com-
       pleted successfully.

       Note:  Tk_SetWindowVisual should not be called  if  you	just  want  to
       change  a  window's colormap without changing its visual or depth; call
       Tk_SetWindowColormap instead.

KEYWORDS
       colormap, depth, visual

Tk				      4.0		 Tk_SetWindowVisual(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OpenServer

List of man pages available for OpenServer

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net