- (tk/wm 'grid #<widget> ?baseWidth baseHeight widthInc heightInc?)
- This command indicates that #<widget> is to be managed as a gridded #<widget>. It also specifies the relationship between grid units and pixel units. BaseWidth and baseHeight specify the number of grid units corresponding to the pixel dimensions requested internally by #<widget> using Tk_GeometryRequest. WidthInc and heightInc specify the number of pixels in each horizontal and vertical grid unit. These four values determine a range of acceptable sizes for #<widget>, corresponding to grid-based widths and heights that are non-negative integers. Tk will pass this information to the window manager; during manual resizing, the window manager will restrict the #<widget>'s size to one of these acceptable sizes. Furthermore, during manual resizing the window manager will display the #<widget>'s current size in terms of grid units rather than pixels. If baseWidth etc. are all specified as empty strings, then #<widget> will no longer be managed as a gridded #<widget>. If baseWidth etc. are specified then the return value is an empty string. Otherwise the return value is a Tcl list containing four elements corresponding to the current baseWidth, baseHeight, widthInc, and heightInc; if #<widget> is not currently gridded, then an empty string is returned. Note: this command should not be needed very often, since the Tk_SetGrid library procedure and the setGrid option provide easier access to the same functionality.
© Author
| Home
| Sitemap
|