# $XConsortium: DrawnBtn2.scr /main/6 1995/07/17 20:06:27 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 window should appear with three DrawnButtons. First
# DrawnButton has pushButtonEnabled set to true. The second and third have
# pushButtonEnabled set to false.
CompareVisual RowColumn1
Continue
# Press and hold MB1 on the top DrawnButton. It should appear to be
# pressed in.
LocatePointer DrawnButton1
PressMB Btn1
CompareVisual DrawnButton1
# Move pointer out of and into the client window. DrawnButton
# should appear popped out when out of the client window and pressed in
# when in the client window. Release MB1.
# DrawnButton should appear popped out.
LocatePointer RowColumn1
CompareVisual DrawnButton1
ReleaseMB Btn1
CompareVisual DrawnButton1
# Click MB1 in each DrawnButton. The second and third buttons will not
# change appearance.
LocatePointer DrawnButton2
PressMB Btn1
CompareVisual DrawnButton2
ReleaseMB Btn1
CompareVisual DrawnButton2
LocatePointer DrawnButton3
PressMB Btn1
CompareVisual DrawnButton3
ReleaseMB Btn1
CompareVisual DrawnButton3
# Move the client window.
WindowMove Shell1 100 100
CompareVisual RowColumn1
Continue
# Iconify the client window. Normalize the client window.
# Resize the client window. If the window resize causes a resize of the
# first DrawnButton, the new size of the button will be displayed on the
# term window.
WindowIconify Shell1
WindowDeiconify Shell1
WindowResize Shell1 SouthEast 300 300
CompareVisual RowColumn1
Exit