wm resizable
Gives or sets whether the user can change the width and the height of a toplevel.
wm resizable WINDOW ?WIDTH HEIGHT?
Description
WIDTH and HEIGHT are booleans. A window that is not resizable in either direction has no maximize button in a title bar that ztk draws. With no values, gives the current pair.
Returns
A list of two booleans, or an empty string.
Examples
% toplevel .t
> set a [wm resizable .t]
> wm resizable .t 0 1
> list $a [wm resizable .t]
{1 1} {0 1}
Errors
% wm resizable .t x 1
expected boolean value but got "x"
-errorcode NONE
% wm resizable .t 1
wrong # args: should be "wm resizable window ?width height?"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1