# $XConsortium: RIDrawArea1b.scr /main/4 1995/07/17 20:35:18 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 21:08:45 yak # Removed blocks ifdef'ed by MOTIF1_1. # And removed #ifdef and #endif lines for MOTIF1_2. CR 6418 # [1993/09/21 20:52:48 yak] # # Revision 1.2.4.2 1993/08/19 13:31:17 yak # Expanded copyright marker # [1993/07/30 19:27:33 yak] # # Revision 1.2.2.2 1992/04/21 14:52:10 qauser # Fix out-of-sync with .c file errors. # [1992/04/20 20:26:06 qauser] # # Revision 1.2 1992/03/13 17:06:08 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". CompareVisual Shell1 Continue # 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. Continue # 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. LocatePointer ArrowButton1 ClickMB Btn1 8 CompareVisual parent ClickMB Btn1 CompareVisual parent # 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. LocatePointer ArrowButton2 ClickMB Btn1 4 CompareVisual parent # Decrease the child to the minimum possible size, then increase it until # it is visible. ClickMB Btn1 18 LocatePointer ArrowButton1 ClickMB Btn1 12 CompareVisual parent Continue # Use the toggle to switch to resizing the Drawing Area's parent. LocatePointer ParentToggle ClickMB Btn1 # Increase the parent several times. EACH increase should produce a resize # callback message. LocatePointer ArrowButton1 ClickMB Btn1 5 # 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. LocatePointer ArrowButton2 PressMB Btn1 LocatePointer ArrowButton2 Off ReleaseMB Btn1 ClickKey KSpace ClickKey KSpace ClickKey KSpace ClickKey KSpace ClickKey KSpace ClickKey KSpace ClickKey KSpace ClickKey KSpace ClickKey KSpace ClickKey KSpace # Resize the window by grabbing the resize border and increasing it. Another # resize callback message should appear and the children should become visible # again. CompareVisual DrawnButton1 WindowResize Shell1 East 300 Continue # 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. LocatePointer ArrowButton1 ClickMB Btn1 11 CompareVisual parent Continue # 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. Continue # The Drawing Area was unmanaged, followed by its other children. One # additional expose event message should be generated. Continue # A Push Me button appears. # Press this button and the window will grow. LocatePointer PB ClickMB Btn1 ClickMB Btn1 CompareVisual DrawnButton1 Continue # The drawing area should now contain an arrow button. The size # of the drawing area should be approximately 520x620. Continue # A drawing Area has been created with resizePolicyGrow. It should # contain an arrow button placed at (100,100). CompareVisual DrawingArea1 Continue # 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). CompareVisual DrawingArea1 Continue # Another drawing area should appear with an arrow button at (50,50). # The size of the drawing area should be approximately (300,300). CompareVisual DrawingArea1 Exit