Tcl/Tk Documentation > TkLib > SetGrid
Tk_SetGrid(tkwin, reqWidth, reqHeight, widthInc, heightInc)
- 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_GeometryRequest.
- 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.
Tk_UnsetGrid cancels gridded geometry management for tkwin's toplevel window.
For each toplevel window there can be at most one internal window with gridding enabled. If Tk_SetGrid or Tk_UnsetGrid is invoked when some other window is already controlling 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.grid, window, window manager