# $XConsortium: Form4.scr /main/4 1995/07/17 20:20:43 drk $
#
# 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
#
#) A client with a form should appear. The form should
#) contain one frame and should be 100x100 pixels.
#) Resize the client window. The frame should remain around
#) the bounds of the window.
#) Iconify and Normalize the client window. The frame
#) should remain around the bounds of the window.
CompareVisual form
WindowResize Shell1 SouthEast 200 150
WindowIconify Shell1
WindowDeiconify Shell1
CompareVisual form
Continue
#) A client with one pushbutton contained in a form should appear.
#) The pushbutton should be \"Attached\" to the form on the top and on the
#) right.
#) Press MB1 on 'PushButton1'. The pushbutton should highlight.
LocatePointer PushButton1
ClickMB Btn1
CompareVisual PushButton1
Continue
#) The form should now contain a second pushbutton. The new
#) pushbutton should be \"Attached\" to the form on the left and on the
#) bottom. It should also be \"Attached\" to 'PushButton1' on the right.
#) Press MB1 on 'PushButton2'. The pushbutton should highlight.
CompareVisual form
LocatePointer PushButton2
ClickMB Btn1
Continue
#) The form should now contain a third pushbutton. The new
#) pushbutton should be \"Attached\" to the form on the left and on the
#) top. It should also be \"Attached\" to 'PushButton1' on the right, and
#) 'PushButton2' on the bottom.
#) Press MB1 on 'PushButton3'. The pushbutton should highlight.
CompareVisual form
LocatePointer PushButton3
ClickMB Btn1
Continue
#) The form should now contain a fourth pushbutton. The new
#) pushbutton should be \"Attached\" to the form on the right and on the
#) bottom. It should also be \"Attached\" to 'PushButton1' on the top, and
#) 'PushButton2' on the left.
#) Press MB1 on 'PushButton4'. The pushbutton should highlight.
CompareVisual form
LocatePointer PushButton4
ClickMB Btn1
Exit