Tk_SetGrid man page on BSDi

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



Tk_SetGrid(3)	      Tk Library Procedures	    Tk_SetGrid(3)

_________________________________________________________________

NAME
       Tk_SetGrid,  Tk_UnsetGrid  - control the grid for interac-
       tive resizing

SYNOPSIS
       #include <tk.h>

       Tk_SetGrid(tkwin, reqWidth, reqHeight, widthInc, heightInc)

       Tk_UnsetGrid(tkwin)

ARGUMENTS
       Tk_Window   tkwin       (in)	 Token for window.

       int	   reqWidth    (in)	 Width in grid units that
					 corresponds to the pixel
					 dimension   tkwin    has
					 requested  via Tk_Geome-
					 tryRequest.

       int	   reqHeight   (in)	 Height	 in  grid   units
					 that  corresponds to the
					 pixel	dimension   tkwin
					 has	 requested    via
					 Tk_GeometryRequest.

       int	   widthInc    (in)	 Width of one grid  unit,
					 in pixels.

       int	   heightInc   (in)	 Height of one grid unit,
					 in pixels.
_________________________________________________________________

DESCRIPTION
       Tk_SetGrid  turns  on  gridded  geometry	 management   for
       tkwin's	toplevel window and specifies the geometry of the
       grid.  Tk_SetGrid is typically invoked by  a  widget  when
       its  setGrid  option  is	 true.	 It restricts interactive
       resizing of tkwin's toplevel  window  so	 that  the  space
       allocated  to  the toplevel is equal to its requested size
       plus or minus even multiples of	widthInc  and  heightInc.
       Furthermore,  the reqWidth and reqHeight values are passed
       to the window manager so that it can report  the	 window's
       size in grid units during interactive resizes.  If tkwin's
       configuration changes (e.g.,  the  size	of  a  grid  unit
       changes)	 then  the  widget should invoke Tk_SetGrid again
       with the new information.

       Tk_UnsetGrid  cancels  gridded  geometry	 management   for
       tkwin's toplevel window.

Tk			       4.0				1

Tk_SetGrid(3)	      Tk Library Procedures	    Tk_SetGrid(3)

       For each toplevel window there can be at most one internal
       window with gridding enabled.  If Tk_SetGrid or	Tk_Unset-
       Grid is invoked when some other window is already control-
       ling gridding for tkwin's toplevel, the calls for the  new
       window have no effect.

       See  the	 wm  manual  entry  for additional information on
       gridded geometry management.

KEYWORDS
       grid, window, window manager

Tk			       4.0				2

[top]

List of man pages available for BSDi

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