Blob Blame History Raw
# $XConsortium: ToggleBtn4.scr /main/4 1995/07/17 20:07:54 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
#

# This is a test of the operation of the toggle button indicator.  
# A toggle button with a small pixmap and a push button should now be
# displayed.  Notice the size of the toggle indicator.

# Click MB1 on the push button labelled "Cycle Pixmaps".  The pixmap on the
# toggle button should change.  This pixmap will be larger than the
# original pixmap.  The indicator should resize itself to remain in
# proportion to the pixmap height.

# Click MB1 on the push button again.  Again, the pixmap will change and 
# the indicator will grow in proportion to its size.

# Click MB1 one more time.  The pixmap returns to its original size and the
# indicator shrinks along with it.

LocatePointer pb1
ClickMB Btn1
CompareVisual tb1
LocatePointer pb1
ClickMB Btn1
CompareVisual tb1
LocatePointer pb1
ClickMB Btn1
CompareVisual tb1
Continue

# A Menu Bar is generated which contains a pulldown menu.  Using MB1,
# press on the MENU cascade button on the Menu Bar and do not release the
# button.  The Pulldown menu appears.

# Notice that all of the toggle buttons in the Pulldown menu have the
# same indicator size.  Keeping MB1 pressed, move the pointer over
# "Button A".  Release MB1.

# Call up the pulldown menu again.  The label of the top button in the
# menu has been changed to "A New Label".  The indicator on this toggle 
# button should remain the same as the other buttons in the Pulldown menu.

LocatePointer MENU
PressMB Btn1
CompareVisual pulldown
LocatePointer Button_A
ReleaseMB Btn1
LocatePointer MENU
PressMB Btn1
CompareVisual pulldown
ReleaseMB Btn1

Continue
Exit