.\" Motif .\" .\" Copyright (c) 1987-2012, The Open Group. All rights reserved. .\" .\" These libraries and programs are free software; you can .\" redistribute them and/or modify them under the terms of the GNU .\" Lesser General Public License as published by the Free Software .\" Foundation; either version 2 of the License, or (at your option) .\" any later version. .\" .\" These libraries and programs are distributed in the hope that .\" they will be useful, but WITHOUT ANY WARRANTY; without even the .\" implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR .\" PURPOSE. See the GNU Lesser General Public License for more .\" details. .\" .\" You should have received a copy of the GNU Lesser General Public .\" License along with these librararies and programs; if not, write .\" to the Free Software Foundation, Inc., 51 Franklin Street, Fifth .\" Floor, Boston, MA 02110-1301 USA ...\" ...\" ...\" HISTORY # $XConsortium: WindowResize.3X /main/4 1995/07/13 20:08:02 drk $ ...\" ** ...\" ** ...\" ** (c) Copyright 1991, 1992 by Open Software Foundation, Inc. ...\" ** All Rights Reserved. ...\" ** ...\" ** .TH WindowResize 3X .SH NAME \*LWindowResize \*O\(em Command to resize the window .SH SYNOPSIS \*LWindowResize\*O \*VWidgetName gravity dimension [dimension]\*O .SH DESCRIPTION The \*LWindowResize\*O command will resize the window associated with \*VWidgetName\*O. If \*VWidgetName\*O is not a shell with its own window on the display, the window of the nearest shell parent in the widget hierarchy will be used. This command is executed by moving the pointer to one of the resize handles of the window, pressing mouse Select button, and dragging it until the window has the desired size. .PP The argument \*Vgravity\*O specifies which resize handle will be used to resize the window. \*LNorth, South, East, West, NorthEast, NorthWest, SouthEast, SouthWest\*O are legal values for \*Vgravity\*O. If \*Vgravity\*O is \*LNorth\*O or \*LSouth\*O, the first \*Vdimension\*O is taken as the new height for the window. If \*Vgravity\*O is \*LEast\*O or \*LWest\*O, the first \*Vdimension\*O is taken as the new width of the window. If \*Vgravity\*O is \*LNorthEast\*O, \*LNorthWest\*O, \*LSouthEast\*O or \*LSouthWest\*O, the first \*Vdimension\*O is taken as the new width of the window, and the (optional) second \*Vdimension\*O is taken as the new height of the window. .IP "\*VWidgetName\*O" 14n The XtName of the widget to be acted upon. .IP "\*Vgravity\*O" 14n String defining the gravity which is used to determine which resize handle will be used and how the \*Vdimension\*O argument(s) will be interpreted. .IP "\*Vdimension\*O" 14n Number defining the new size in any one direction. If \*Vgravity\*O is specified as either \*LNorth\*O or \*LSouth\*O, \*Vdimension\*O will be interpreted as the new height of the window; otherwise, it will be interpreted as the new width of the window. .IP "\*V[dimension]\*O" 14n Number defining the new height of the window if \*Vgravity\*O is \*LNorthEast\*O, \*LNorthWest\*O, \*LSouthEast\*O or \*LSouthWest\*O; otherwise this is ignored. .PP For more information about \*LWindowResize\*O, see the \*EOSF/Motif Quality Assurance Test Suite User's Guide\*O. .SH EXAMPLE \*LWindowResize Shell1 SouthEast 200 250\*O .PP This will move the pointer to the resize handle at the lower right corner of the window associated with Shell1 and generate diagonal drag with Select button down until the window's size is 200x250. .PP \*LWindowResize Shell1 South 300\*O .PP This will move the pointer to the middle of the bottom resize handle of the window associated with Shell1 and generate vertical drag with Select button down, until the height of the window is 300. .PP \*LWindowResize Shell1 West 300\*O .PP This will move the pointer to the middle of the left resize handle of the window associated with Shell1 and generate horizontal drag with Select button down, until the width of the window is 300. .PP \*LWindowResize Shell1 SouthWest 400\*O .PP This will move the pointer to the resize handle at the bottom left corner of the window associated with Shell1 and generate horizontal drag with Select button down, until the width of the window is 400. .PP \*LWindowResize Shell1 North 450 500\*O .PP This will move the pointer to the middle of the top resize handle of the window associated with Shell1 and generate vertical drag with Select button down, until the height of the window is 450. The second \*Vdimension\*O, 500, is ignored for this gravity. .SH "RELATED INFORMATION" .na \*LWindowRaise(3X)\*O, \*LWindowIconify(3X)\*O, \*LWindowDeiconify(3X)\*O, \*LWindowMenuPost(3X)\*O, \*LWindowMenuUnpost(3X)\*O, \*LWindowMenuSelect(3X)\*O, \*LWindowMaximize(3X)\*O, \*LWindowNormalize(3X)\*O, \*LWindowMove(3X)\*O, \*LWindowFocus(3X)\*O .ad