Blame tests/Toolkit/Buttons/ToggleBGad4.scr

Packit b099d7
# $XConsortium: ToggleBGad4.scr /main/6 1995/07/17 20:07:23 drk $
Packit b099d7
# 
Packit b099d7
# Motif
Packit b099d7
#
Packit b099d7
# Copyright (c) 1987-2012, The Open Group. All rights reserved.
Packit b099d7
#
Packit b099d7
# These libraries and programs are free software; you can
Packit b099d7
# redistribute them and/or modify them under the terms of the GNU
Packit b099d7
# Lesser General Public License as published by the Free Software
Packit b099d7
# Foundation; either version 2 of the License, or (at your option)
Packit b099d7
# any later version.
Packit b099d7
#
Packit b099d7
# These libraries and programs are distributed in the hope that
Packit b099d7
# they will be useful, but WITHOUT ANY WARRANTY; without even the
Packit b099d7
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
Packit b099d7
# PURPOSE. See the GNU Lesser General Public License for more
Packit b099d7
# details.
Packit b099d7
#
Packit b099d7
# You should have received a copy of the GNU Lesser General Public
Packit b099d7
# License along with these librararies and programs; if not, write
Packit b099d7
# to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
Packit b099d7
# Floor, Boston, MA 02110-1301 USA
Packit b099d7
# 
Packit b099d7
# 
Packit b099d7
# HISTORY
Packit b099d7
# 
Packit b099d7
Packit b099d7
# The toggle buttons in this test are part of the same tab group.  Put 
Packit b099d7
# the pointer over the top toggle button. Press the space bar to activate it.
Packit b099d7
# The pixmap changes and the indicator fills. 
Packit b099d7
Packit b099d7
LocatePointer TButton1
Packit b099d7
ClickKey KSpace
Packit b099d7
CompareVisual TButton1
Packit b099d7
Packit b099d7
# C)
Packit b099d7
Packit b099d7
Continue
Packit b099d7
Packit b099d7
Packit b099d7
# Press the down arrow key twice so Toggle 3 is highlighted. 
Packit b099d7
Packit b099d7
LocatePointer TButton1
Packit b099d7
ClickKey KDown
Packit b099d7
ClickKey KDown
Packit b099d7
Packit b099d7
# Hit the spacebar key (in Toggle 3). A new button will appear. 
Packit b099d7
# Its highlightThickness will be 4. 
Packit b099d7
Packit b099d7
ClickKey KSpace
Packit b099d7
CompareVisual PanedWindow1
Packit b099d7
Packit b099d7
# Resize the window larger so you can see the entire button label. 
Packit b099d7
Packit b099d7
WindowResize Shell1 SouthEast 300 200
Packit b099d7
CompareVisual PanedWindow1
Packit b099d7
Packit b099d7
# C)
Packit b099d7
Packit b099d7
Continue
Packit b099d7
Packit b099d7
# Hit the tab key to move to the More Widgets... button. 
Packit b099d7
Packit b099d7
LocatePointer TButton3
Packit b099d7
ClickKey KTab
Packit b099d7
Packit b099d7
# Hit the spacebar key, and two things should happen:  The button's label
Packit b099d7
# changes to Toggle Gadget States and Toggle Widgets 1 and 2 appear in 
Packit b099d7
# a new pane. Toggle Widget 2 will have a highlightThickness of 4. 
Packit b099d7
Packit b099d7
ClickKey KSpace
Packit b099d7
CompareVisual StateButton1
Packit b099d7
Packit b099d7
# The push button will now reset the state of the toggle buttons in 
Packit b099d7
# the top pane. Use the spacebar key to activate the button.
Packit b099d7
# Each time you press the Toggle States button, the toggle buttons which
Packit b099d7
# were ON will switch OFF and vice-versa. 
Packit b099d7
Packit b099d7
CompareVisual WidgetRC
Packit b099d7
ClickKey KSpace
Packit b099d7
CompareVisual TButton3
Packit b099d7
ClickKey KSpace
Packit b099d7
CompareVisual TButton2
Packit b099d7
Packit b099d7
# C)
Packit b099d7
Packit b099d7
Continue
Packit b099d7
Packit b099d7
Packit b099d7
# Hit the tab key twice to get to the bottom pane. Press the down arrow
Packit b099d7
# key and use the spacebar key to depress the Toggle Widget 2 button. 
Packit b099d7
Packit b099d7
LocatePointer TButton3
Packit b099d7
ClickKey KTab
Packit b099d7
ClickKey KTab
Packit b099d7
ClickKey KDown
Packit b099d7
ClickKey KSpace
Packit b099d7
CompareVisual ToggleW2
Packit b099d7
Packit b099d7
# Use the up arrow key to return to Toggle Widget 1. Hit the spacebar key. 
Packit b099d7
Packit b099d7
ClickKey KUp
Packit b099d7
ClickKey KSpace
Packit b099d7
CompareVisual StateButton2
Packit b099d7
Packit b099d7
# A new button called Toggle Widget States... has appeared. 
Packit b099d7
Packit b099d7
CompareVisual StateButton2
Packit b099d7
Packit b099d7
# Hit the Shift-tab key to reach the bottom pane. You can
Packit b099d7
# use this button to toggle the states of the widgets in the 
Packit b099d7
# pane just above it, as you did earlier. 
Packit b099d7
Packit b099d7
ClickKey <Shift> KTab
Packit b099d7
ClickKey KSpace
Packit b099d7
CompareVisual ToggleW1
Packit b099d7
Packit b099d7
# C)
Packit b099d7
Packit b099d7
Continue
Packit b099d7
	
Packit b099d7
# E)
Packit b099d7
Packit b099d7
Exit