Tcl8.6/Tk8.6 Documentation > Tk C API, version 8.6.8 > SetGrid
Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite3 Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API
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
Copyright © 1994-1996 Sun Microsystems, Inc.