# $XConsortium: FormDia1.scr /main/4 1995/07/17 20:21:01 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 # A client with a form should appear. The form should # contain one PushButton labeled push1. # Resize the client in width and height. You should # see a second PushButton attached to the right, left, and bottom # of the form and set 10 pixels from push1 border. # Press MB1 on the pushButton1. A callback will set # PushButton2's topAttachment to XmATTACH_NONE, and set the top Widget # constraint to NULL. The top of PushButton2 moves up and # under PushButton1. CompareVisual form WindowResize form SouthEast 200 200 CompareVisual form LocatePointer push1 ClickMB Btn1 CompareVisual form Continue #) Resize the client window in width and height. You should # see PushButton2 attached to the bottom, right, and left of the form. #) Press MB1 on PushButton1. You should see PushButton2 attached # to all edges of the form with the top edge obscured by PushButton1. #) Resize the client in width and height. All of PushButton2's # edges should remain attached. WindowResize form SouthEast 300 300 CompareVisual form LocatePointer push1 ClickMB Btn1 CompareVisual form WindowResize form SouthEast 300 300 CompareVisual form Continue # Press MB1 on PushButton1. This sets the top widget # attachment for PushButton2 to NULL. # Press MB1 on PushButton1. This attaches the top of PushButton2 back onto # the bottom of PushButton1 with an offset of 10. # Resize the client window in width and height. All of PushButton2's # edges should remain attached. LocatePointer push1 ClickMB Btn1 CompareVisual form LocatePointer push1 ClickMB Btn1 CompareVisual form WindowResize Shell1 SouthEast 200 200 CompareVisual form Continue # Press MB1 on PushButton1. This sets the shell to non-resizable # and sets the size of PushButton2. The form should remain the # same size. # Press MB1 on PushButton1. This attaches the left and right # edges of PushButton2 to the opposite edges of PushButton1. # There should be no visible change. # Resize the client window in width and height. All of PushButton2's # edges should remain attached. # Press MB1 on PushButton1. This creates a very small # form dialog centered in the original form. LocatePointer push1 ClickMB Btn1 CompareVisual form LocatePointer push1 ClickMB Btn1 CompareVisual form WindowResize Shell1 SouthEast 200 200 CompareVisual form LocatePointer push1 ClickMB Btn1 WindowMove form_dialog 300 300 CompareVisual form Exit