Oct. 13, 2004
3:46 a.m.
The wm_minsize and wm_maxsize methods can set the range of sizes users are permitted to give a particular toplevel. Note that if the window is already bigger or smaller than this, its size is not immediately changed. But when the user attempts to resize it, the minimum and maximum will be enforced. You can also use the wm_resizable method to make the window non-resizable. How setting or removing these flags affects the window's decorations is highly dependant on window manager. On my window manager, only wm_resizable(0,0) removes the maximize button, but wm_maxsize(400,400) makes "maximize" keep the content area of the window only 400x400. I think the behavior on most flavors of Windows is similar to this behavior. Jeff