# $XConsortium: Scale5.scr /main/4 1995/07/17 20:36:36 drk $ # @OPENGROUP_COPYRIGHT@ # COPYRIGHT NOTICE # Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc. # Copyright (c) 1996, 1997, 1998, 1999, 2000 The Open Group # ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for # the full copyright text. # # This software is subject to an open license. It may only be # used on, with or for operating systems which are themselves open # source systems. You must contact The Open Group for a license # allowing distribution and sublicensing of this software on, with, # or for operating systems which are not Open Source programs. # # See http://www.opengroup.org/openmotif/license for full # details of the license agreement. Any use, reproduction, or # distribution of the program constitutes recipient's acceptance of # this agreement. # # EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS # PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY # WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY # OR FITNESS FOR A PARTICULAR PURPOSE # # EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT # NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN # ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE # EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGES. # # HISTORY # @) A client with a vertical scale will appear. The scale # will have two labels that say '0' and '100'. Both labels # will have thin black borders and the '100' will be at the bottom. # #) Press MB1 on the slider and drag the slider. The callback # reasons (XmCR_DRAG's and then one XmCR_VALUE_CHANGED) and values # should be printed in the stdout window. LocatePointer Scale1 RScaleSlider DragSliderValue Down 40 CompareVisual Scale1 # #) Click MB1 in the area above the slider. The callback reason # (XmCR_VALUE_CHANGED) and value should be printed in the stdout window. LocatePointer Scale1 RScaleUpOrLeftSliderArea ClickMB Btn1 CompareVisual Scale1 # #) Resize the client window larger. The labels should spread out # and remain on the left side, the scale area should span the right side. WindowResize Shell1 SouthEast 100 200 CompareVisual Shell1 # #) Resize the client window smaller. WindowResize Shell1 SouthEast 50 100 CompareVisual Shell1 # C) Continue # @) A client with a horizontal scale will appear. The scale # will have two labels that say '0' and '100'. Both labels # will have thin black borders and the '100' will be on the right. # #) Press MB1 on the slider and drag the slider. The callback # reasons (XmCR_DRAG's and then one XmCR_VALUE_CHANGED) and values # should be printed in the stdout window. LocatePointer Scale1 RScaleSlider DragSliderValue Right 70 CompareVisual Scale1 # #) Click MB1 in area to the left of the slider. The callback # reason (XmCR_VALUE_CHANGED) and value should be printed in the # stdout window. LocatePointer Scale1 RScaleDownOrRightSliderArea ClickMB Btn1 CompareVisual Scale1 # #) Resize the client window larger. The label should spread out # and remain on the top, the scale area should span the bottom. WindowResize Shell1 SouthEast 200 100 CompareVisual Shell1 # #) Resize the client window smaller. WindowResize Shell1 SouthEast 100 50 CompareVisual Shell1 # E) Exit