Blob Blame History Raw
#
# 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
#

#   $XConsortium: Scrollbar4.scr /main/4 1995/07/13 19:15:03 drk $ 


# A client window with a large horizontal scrollbar with two arrows
# and a very thin slider will appear. 

CompareVisual scrollbar

# Click MB1 on each end of the scrollbar.  The value should change,
# and should be displayed in the xterm window.  Clicking MB1 on the
# left arrow will increase the value, and clicking MB1 on the right
# arrow will decrease the value.  The maximum value will be 90 and
# the minimum value will be 0. 

LocatePointer scrollbar RUpOrLeftArrow
ClickMB Btn1
ClickMB Btn1
LocatePointer scrollbar RDownOrRightArrow
ClickMB Btn1
ClickMB Btn1
Continue

# The scrollbar will be much smaller, will now have a thicker slider, and
# the processing direction will be reversed from the first scrollbar.
# The initial value should be 20. 

CompareVisual scrollbar

# Press and hold down MB1 on the slider and drag the pointer to the
# right and to the left.  Release MB1.  The current value should be
# displayed in the xterm window.  The maximum value should be 90
# and the minimum value should be 0. 

LocatePointer scrollbar RSlider 
DragSliderValue Right 55  Btn1
DragSliderValue Right Max Btn1
DragSliderValue Left 20 Btn1
DragSliderValue Left Min Btn1

Continue 

# The scrollbar orientation will change to vertical, with two
# arrows and a very thin slider.  The initial value should be 80. 

CompareVisual scrollbar

# Click MB1 on each end of the scrollbar.  The value should change
# and be displayed in the xterm window.  The maximum value will be
# 90 and the minimum value will be 0.  The bottom arrow increases
# the value. 

LocatePointer scrollbar RUpOrLeftArrow
ClickMB Btn1
ClickMB Btn1
LocatePointer scrollbar RDownOrRightArrow
ClickMB Btn1
ClickMB Btn1
Continue

# The following resources will be changed by the stated amounts:
#!)
#     a) Value will increase by 5.
#     b) Slider size will increase by 5.
#     c) Increment will increase by 2.
#     d) Page increment will increase by 5.
#@) These changes will be performed 10 times.  After each iteration,
#   the changes will be printed in the xterm window. 

CompareVisual scrollbar
Continue

# The scrollbar will grow vertically, the arrows will grow larger,
# and the slider will grow. 

CompareVisual scrollbar

# An X Toolkit warning for setting the scrollbar value greater
# than the maximum scrollbar value minus the scrollbar slider size
# will be printed in the xterm window. 

# The initial values for the scrollbar will be printed in the
# xterm window. 

# Press and hold down MB1 on the slider and drag the pointer up and
# down.  No values will be printed to the xterm window. 

LocatePointer scrollbar RSlider
DragSliderValue Down Max Btn1
CompareVisual scrollbar
DragSliderValue Up Min Btn1
CompareVisual scrollbar

# Click MB1 on the top and bottom arrows of the scrollbar.  The
# slider will move in the direction of the arrow clicked on.  No
# values will be printed. 

LocatePointer scrollbar RDownOrRightArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
LocatePointer scrollbar RUpOrLeftArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
Continue

# The scrollbar slider will be smaller. 

CompareVisual scrollbar

# An X Toolkit warning for setting the scrollbar value greater
# than the maximum scrollbar value minus the scrollbar slider size
# will be printed in the xterm window. 

# The initial values for the scrollbar will be printed in the xterm
# window. 

# Press and hold down MB1 on the slider and drag the pointer up and
# down.  No values will be printed to the xterm window. 

LocatePointer scrollbar RSlider
DragSliderValue Down Max Btn1
CompareVisual scrollbar
DragSliderValue Up Min Btn1
CompareVisual scrollbar

# Click MB1 on the top and bottom arrows of the scrollbar.  The
# slider will move in the direction of the arrow clicked on.  No
# values will be printed to the xterm window. 

LocatePointer scrollbar RDownOrRightArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
LocatePointer scrollbar RUpOrLeftArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
Continue

# The scrollbar slider size will not change. 

CompareVisual scrollbar

# An X Toolkit warning for setting the scrollbar value greater
# than the maximum scrollbar value minus the scrollbar slider size
# will be printed in the xterm window. 

# The initial values for the scrollbar will be printed in the xterm
# window. 

# Press and hold down MB1 on the slider and drag the pointer up and
# down.  No values will be printed to the xterm window. 

LocatePointer scrollbar RSlider
DragSliderValue Down Max Btn1
CompareVisual scrollbar
DragSliderValue Up Min Btn1
CompareVisual scrollbar

# Click MB1 on the top and bottom arrows of the scrollbar.  The
# slider will move in the direction of the arrow clicked on.  No
# values will be printed to the xterm window. 

LocatePointer scrollbar RDownOrRightArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
LocatePointer scrollbar RUpOrLeftArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
Continue

# The scrollbar slider will be at the top of the scrollbar. 

CompareVisual scrollbar

# The initial values for the scrollbar will be printed in the xterm
# window. 

# Press and hold down MB1 on the slider and drag the pointer up and
# down.  No values will be printed to the xterm window. 

LocatePointer scrollbar RSlider
DragSliderValue Down Max Btn1
CompareVisual scrollbar
DragSliderValue Up Min Btn1
CompareVisual scrollbar

# Click MB1 on the top and bottom arrows of the scrollbar.  The
# slider will move in the direction of the arrow clicked on.  No
# values will be printed to the xterm window. 

LocatePointer scrollbar RDownOrRightArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
LocatePointer scrollbar RUpOrLeftArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
Continue

# The scrollbar slider will be smaller. 

CompareVisual scrollbar

# An X Toolkit warning for setting the scrollbar value less than
#   the minimum scrollbar value will be printed in the xterm window. 

# The initial values for the scrollbar will be printed in the xterm
# window. 

# Press and hold down MB1 on the slider and drag the pointer up and
# down.  No values will be printed to the xterm window. 

LocatePointer scrollbar RSlider
DragSliderValue Down Max Btn1
CompareVisual scrollbar
DragSliderValue Up Min Btn1
CompareVisual scrollbar

# Click MB1 on the top and bottom arrows of the scrollbar.  The
# slider will move in the direction of the arrow clicked on.  No
# values will be printed to the xterm window. 

LocatePointer scrollbar RDownOrRightArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
LocatePointer scrollbar RUpOrLeftArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
Continue

# There will be no visible change in the scrollbar. 

CompareVisual scrollbar

# The initial values for the scrollbar will be printed in the xterm
# window. 

# Press and hold down MB1 on the slider and drag the pointer up and
# down.  No values will be printed to the xterm window. 

LocatePointer scrollbar RSlider
DragSliderValue Down Max Btn1
CompareVisual scrollbar
DragSliderValue Up Min Btn1
CompareVisual scrollbar

# Click MB1 on the top and bottom arrows of the scrollbar.  The
# slider will move in the direction of the arrow clicked on.  No
# values will be printed to the xterm window. 

LocatePointer scrollbar RDownOrRightArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
LocatePointer scrollbar RUpOrLeftArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
Continue

# There will be no visible change in the scrollbar. 

CompareVisual scrollbar

# The initial values for the scrollbar will be printed in the xterm
# window. 

# Press and hold down MB1 on the slider and drag the pointer up and
# down.  No values will be printed to the xterm window. 

LocatePointer scrollbar RSlider
DragSliderValue Down Max Btn1
CompareVisual scrollbar
DragSliderValue Up Min Btn1
CompareVisual scrollbar

# Click MB1 on the top and bottom arrows of the scrollbar.  The
# slider will move in the direction of the arrow clicked on.  No
# values will be printed to the xterm window. 

LocatePointer scrollbar RDownOrRightArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
LocatePointer scrollbar RUpOrLeftArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
Continue

# The scrollbar slider will be at the bottom of the scrollbar. 

CompareVisual scrollbar

# An X Toolkit warning for setting the scrollbar value greater
# than the maximum scrollbar value minus the scrollbar slider size
# will be printed in the xterm window. 

# The initial values for the scrollbar will be printed in the xterm
# window. 

# Press and hold down MB1 on the slider and drag the pointer up and
# down.  No values will be printed to the xterm window. 

LocatePointer scrollbar RSlider
DragSliderValue Up Min  Btn1
CompareVisual scrollbar
DragSliderValue Down Max Btn1
CompareVisual scrollbar

# Click MB1 on the top and bottom arrows of the scrollbar.  The
# slider will move in the direction of the arrow clicked on.  No
# values will be printed to the xterm window. 

LocatePointer scrollbar RUpOrLeftArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
LocatePointer scrollbar RDownOrRightArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
Continue

# The scrollbar slider will be larger. 

CompareVisual scrollbar

# An X Toolkit warning for setting the scrollbar value greater
# than the maximum scrollbar value minus the scrollbar slider size
# will be printed in the xterm window. 

# The initial values for the scrollbar will be printed in the xterm
# window. 

# Press and hold down MB1 on the slider and drag the pointer up and
# down.  No values will be printed to the xterm window. 

LocatePointer scrollbar RSlider
DragSliderValue Up Min  Btn1
CompareVisual scrollbar
DragSliderValue Down Max Btn1
CompareVisual scrollbar

# Click MB1 on the top and bottom arrows of the scrollbar.  The
# slider will move in the direction of the arrow clicked on.  No
# values will be printed to the xterm window. 

LocatePointer scrollbar RUpOrLeftArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
LocatePointer scrollbar RDownOrRightArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
Continue

# There will be no visible change in the scrollbar. 

CompareVisual scrollbar

# The initial values for the scrollbar will be printed in the xterm
# window. 

# Press and hold down MB1 on the slider and drag the pointer up and
# down.  No values will be printed to the xterm window. 

LocatePointer scrollbar RSlider
DragSliderValue Up Min  Btn1
CompareVisual scrollbar
DragSliderValue Down Max Btn1
CompareVisual scrollbar

# Click MB1 on the top and bottom arrows of the scrollbar.  The
# slider will move in the direction of the arrow clicked on.  No
# values will be printed to the xterm window. 

LocatePointer scrollbar RUpOrLeftArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
LocatePointer scrollbar RDownOrRightArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
Continue

# The scrollbar slider will be larger. 

CompareVisual scrollbar

# An X Toolkit warning for setting the scrollbar value greater
# than the maximum scrollbar value minus the scrollbar slider size
# will be printed in the xterm window. 

# The initial values for the scrollbar will be printed in the xterm
# window. 

# Press and hold down MB1 on the slider and drag the pointer up and
# down.  No values will be printed to the xterm window. 

LocatePointer scrollbar RSlider
DragSliderValue Up Min  Btn1
CompareVisual scrollbar
DragSliderValue Down Max Btn1
CompareVisual scrollbar

# Click MB1 on the top and bottom arrows of the scrollbar.  The
# slider will move in the direction of the arrow clicked on.  No
# values will be printed to the xterm window. 

LocatePointer scrollbar RUpOrLeftArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
LocatePointer scrollbar RDownOrRightArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
Continue

# The scrollbar slider will be at the top of the scrollbar. 

CompareVisual scrollbar

# An X Toolkit warning for setting the scrollbar value less than
# the minimum scrollbar value will be printed in the xterm window. 

# The initial values for the scrollbar will be printed in the xterm
# window. 

# Press and hold down MB1 on the slider and drag the pointer up and
# down.  No values will be printed to the xterm window. 

LocatePointer scrollbar RSlider
DragSliderValue Down Max Btn1
CompareVisual scrollbar
DragSliderValue Up Min Btn1
CompareVisual scrollbar

# Click MB1 on the top and bottom arrows of the scrollbar.  The
# slider will move in the direction of the arrow clicked on.  No
# values will be printed to the xterm window. 

LocatePointer scrollbar RDownOrRightArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
LocatePointer scrollbar RUpOrLeftArrow
ClickMB Btn1
ClickMB Btn1
CompareVisual scrollbar
Continue

# The scrollbar slider will be larger. 

CompareVisual scrollbar

# An X Toolkit warning for setting the scrollbar value less than
# the minimum scrollbar value will be printed in the xterm window. 

# The initial values for the scrollbar will be printed in the xterm
# window. 

# Press and hold down MB1 on the slider and drag the pointer up and
# down.  When you release MB1, the current scrollbar value will be
# printed to the xterm window. 

LocatePointer scrollbar RSlider
DragSliderValue Down Max Btn1
DragSliderValue Up Min Btn1

# Click MB1 on the top and bottom arrows of the scrollbar.  The
# slider will move in the direction of the arrow clicked on.  The
# current scrollbar value will be printed to the xterm window. 

LocatePointer scrollbar RDownOrRightArrow
ClickMB Btn1
ClickMB Btn1
LocatePointer scrollbar RUpOrLeftArrow
ClickMB Btn1
ClickMB Btn1
Continue

Exit