/* $XConsortium: RIDrawArea1b.dat /main/4 1995/07/17 10:20:14 drk $ */ /* * @OPENGROUP_COPYRIGHT@ * COPYRIGHT NOTICE * Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc. * Copyright (c) 1996, 1997, 1998, 1999, 2000 The Open Group * ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for * the full copyright text. * * This software is subject to an open license. It may only be * used on, with or for operating systems which are themselves open * source systems. You must contact The Open Group for a license * allowing distribution and sublicensing of this software on, with, * or for operating systems which are not Open Source programs. * * See http://www.opengroup.org/openmotif/license for full * details of the license agreement. Any use, reproduction, or * distribution of the program constitutes recipient's acceptance of * this agreement. * * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS * PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY * WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY * OR FITNESS FOR A PARTICULAR PURPOSE * * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT * NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE * EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* * HISTORY */ /* * Original History: * Revision 1.2.4.3 1993/09/21 19:51:53 yak * Removed blocks ifdef'ed by MOTIF1_1. * And removed #ifdef and #endif lines for MOTIF1_2. CR 6418 * [1993/09/21 19:30:40 yak] * * Revision 1.2.4.2 1993/08/19 13:31:12 yak * Expanded copyright marker * [1993/07/30 19:27:28 yak] * * Revision 1.2.2.3 1992/04/21 14:52:13 qauser * Fix out-of-sync with .c file errors. * [1992/04/20 20:25:53 qauser] * * Revision 1.2.2.2 1992/03/17 23:15:54 yak * Fixed rcsid * [1992/03/17 23:15:40 yak] * * Revision 1.2 1992/03/13 17:06:01 devsrc * Converted to ODE * */ #) Client window will contain the following items: a label "Resize Drawn Button", with arrowButtons on both sides; a square Box; two toggle buttons, "Resize Child" and "Resize Parent". C) #) This is a test of the resize callback. Five messages about resize callback should appear in the xterm window. The messages are numbered to help you keep track of them. The toggles at the bottom let you choose between resizing the Parent of the Drawing Area -- a form -- and one of its children, the Drawn button. In this test, the Drawn button appears as a square box. #) This test is being run in BBForm mode. The UP arrow will INCREASE the size of the parent or child (depending on which toggle is set). The DOWN arrow will DECREASE the size. C) #) Increase the child size several times. It should not force the Drawing Area to resize until its right edge has to move beyond the right edge of the rightmost arrow button. #) Once you reach the edge of the drawing area, each increase in the size of the child should result in visible resizing and another resize callback message. #) Decrease the size of the child several times. At some point, the Drawing Area will stop growing smaller. At this point, no more resize callback messages should appear as you decrease the child's size. #) Decrease the child to the minimum possible size, then increase it until it is visible. C) #) Use the toggle to switch to resizing the Drawing Area's parent. #) Increase the parent several times. EACH increase should produce a resize callback message. #) Decrease the parent to the minimum possible. To do this, put the focus on the DECREASE arrow button and press the space bar repeatedly (if you use the mouse, at some point the window will be to small for you to click on the DECREASE arrow button.) Each decrease should also produce a resize callback message. #) Resize the window by grabbing the resize border and increasing it. Another resize callback message should appear and the children should become visible again. C) #) By clicking on arrow buttons, you will instead MOVE the child. The "Resize Parent" toggle is no longer useful. Use the UP arrow to move the drawn button until it forces the client to resize. Again, you should see resize callback messages each time the client appears to resize. C) #) The Parent toggle was unmanaged and remanaged. There should be only TWO messages about an expose event having been generated. Note: You can also compile this test with -DBESTCASE, and you may see fewer expose events being generated. C) #) The Drawing Area was unmanaged, followed by its other children. One additional expose event message should be generated. C) #) The drawing area should now contain an arrow button. The size of the drawing area should be approximately 520x620. C) #) A Push Me button appears. #) Press this button and the window will grow. C) #) A drawing Area has been created with resizePolicyGrow. It should contain an arrow button placed at (100,100). C) #) The arrow button has been moved to (50, 200). The drawing area should grow in the y direction, but remain the same in the x direction, giving a size of approximately (160, 260). C) #) Another drawing area should appear with an arrow button at (50,50). The size of the drawing area should be approximately (300,300). E)