diff options
author | mdejong <mdejong@noemail.net> | 2003-03-12 00:25:40 (GMT) |
---|---|---|
committer | mdejong <mdejong@noemail.net> | 2003-03-12 00:25:40 (GMT) |
commit | 7749cc2d82f730d9b7bbf7e621230c694252ad7c (patch) | |
tree | 1c5f6fc421347a2e042b8056bdecab04a447614a /doc/wm.n | |
parent | 3ed130ba09e63f7480bdd04aa53d87b3071fcb1b (diff) | |
download | tk-7749cc2d82f730d9b7bbf7e621230c694252ad7c.zip tk-7749cc2d82f730d9b7bbf7e621230c694252ad7c.tar.gz tk-7749cc2d82f730d9b7bbf7e621230c694252ad7c.tar.bz2 |
* doc/wm.n (minimize, maximize): Remove claim
that the resizable command keeps scripts from
changing the size of windows since it is
not true. The resizable command only applies
to user sizing via user interaction.
* tests/unixWm.test: Replace broken tests with
the nonPortable constraint with new tests for
maxsize and minsize options. These tests
verify that setting the minsize and maxsize
will resize the window if needed, and that
the wm hints will be updated with the new sizes.
* tests/wm.test: Add an exhaustive set of tests
for the wm maxsize and wm minsize commands.
These tests verify that setting the minsize
and maxsize will resize the window if needed.
These tests have only been run under Win98
and Window Maker under Linux, so further tweaking
may be needed for other systems.
* unix/tkUnixWm.c (UpdateGeometryInfo, UpdateSizeHints):
Fixup comments and initialization for the minWidth,
minHeight, maxWidth, maxHeight, width, and height
members of the WmInfo struct. Check to ensure
that a new toplevel window size is not larger
than the maxsize or smaller than the minsize
when updating the geometry at idle time.
Pass new width and height values to the
UpdateSizeHints method so that it can properly
set the window min and max sizes for a window
that cannot be resized by the user. This fixes
a bug where the window resizes back to the original
size when the user clicks on the window border.
* win/tkWinWm.c (UpdateGeometryInfo):
Fixup comments and initialization for the minWidth,
minHeight, maxWidth, maxHeight, width, and height
members of the WmInfo struct. Check to ensure
that a new toplevel window size is not larger
than the maxsize or smaller than the minsize
when updating the geometry at idle time.
[Patch 568861]
FossilOrigin-Name: 1047136cd828a543b628dac9491711e6f662cb3e
Diffstat (limited to 'doc/wm.n')
-rw-r--r-- | doc/wm.n | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: wm.n,v 1.11 2002/07/16 18:06:41 vincentdarley Exp $ +'\" RCS: @(#) $Id: wm.n,v 1.12 2003/03/12 00:25:41 mdejong Exp $ '\" .so man.macros .TH wm n 8.4 Tk "Tk Built-In Commands" @@ -312,8 +312,6 @@ specified, then the command returns an empty string. Otherwise it returns a Tcl list with two elements, which are the maximum width and height currently in effect. The maximum size defaults to the size of the screen. -If resizing has been disabled with the \fBwm resizable\fR command, -then this command has no effect. See the sections on geometry management below for more information. .TP \fBwm minsize \fIwindow\fR ?\fIwidth height\fR? @@ -328,8 +326,6 @@ specified, then the command returns an empty string. Otherwise it returns a Tcl list with two elements, which are the minimum width and height currently in effect. The minimum size defaults to one pixel in each dimension. -If resizing has been disabled with the \fBwm resizable\fR command, -then this command has no effect. See the sections on geometry management below for more information. .TP \fBwm overrideredirect \fIwindow\fR ?\fIboolean\fR? |