# $XConsortium: SelectBox1.scr /main/8 1995/07/17 20:38:11 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 # # OSF/Motif: @(#)SelectBox1.scr 1.4 92/02/14 # A client with a SelectionBox will appear. The SelectionBox # should consist of the following items: # # a) a list, labeled \"Pick a Test\", with twenty # items visible, # b) a scrollbar to the right of the list, # c) a selection text widget , labeled \"test:\", # below the list, and # d) four pushbuttons at the bottom, labeled # \"OK\", \"Apply\", \"Cancel\", and \"Help\". LocatePointer SelectionBox1 CompareVisual SelectionBox1 # C) Continue # Click MB1 on the item \"decor00\" in the list. The selected item # should be highlighted, and \"decor00\" should appear in the # selection text widget \"test:\". LocatePointer SelectionBox1 RSelectionListItem 4 ClickMB Btn1 CompareVisual SelectionBox1 # Click MB1 on the item \"func04\" in the list. The selected item # should be highlighted, and \"func04\" should appear in the # selection text widget \"test:\". LocatePointer SelectionBox1 RSelectionListItem 18 ClickMB Btn1 CompareVisual SelectionBox1 # Press and hold down MB1 on \"btest3\" in the list. \"btest3 # should be highlighted. Drag the pointer down to \"decor07\". # The item under the pointer should always be highlighted. Release # MB1. \"decor07\" should appear in the selection text widget \"test:\". LocatePointer SelectionBox1 RSelectionListItem 3 DragComponent SelectionBox1 RSelectionListItem 11 # Click MB1 on the \"OK\" button. \"ok: decor07\" should appear in # the xterm window. LocatePointer SelectionBox1 ROkButton ClickMB Btn1 # C) Continue # Move the client window. Iconify the client window. Normalize # the client window. Resize the client window. WindowMove SelectionBox1 50 50 WindowIconify Shell1 WindowDeiconify Shell1 # Move the pointer into the \"test:\" selection text widget. Press # the backspace key repeatedly to remove \"decor07\" from the # \"test:\" selection text widget. Press and hold down MB1 on the # bottom arrow of the scrollbar. The slider should move down and # the list should scroll. Release MB1. Press and hold down MB1 on # the scrollbar slider. Drag the slider to the bottom of the # scrollbar. The list should scroll. Release MB1. LocatePointer SelectionBox1 RSelectionText ClickMB Btn1 ClickKey KBackSpace ClickKey KBackSpace ClickKey KBackSpace ClickKey KBackSpace ClickKey KBackSpace ClickKey KBackSpace ClickKey KBackSpace LocatePointer SelectionBox1 RSelectListVertScrollBarDownArrow ClickMB Btn1 ClickMB Btn1 ClickMB Btn1 ClickMB Btn1 LocatePointer SelectionBox1 RSelectListVertScrollBarSlider DragSliderValue Down Max CompareVisual SelectionBox1 # Move the pointer into the \"test:\" selection text widget. Type # \"pitest1\". Click MB1 on the \"OK\" button. \"ok: pitest1 # should appear in the xterm window. Double click MB1 on \"parse00\" # in the list. \"parse00\" should be highlighted, and \"parse00\" # should appear in the \"test:\" selection text widget. \"ok: parse00\" # should also appear in the xterm window. LocatePointer SelectionBox1 RSelectionText ClickMB Btn1 InputString "pitest1" LocatePointer SelectionBox1 ROkButton ClickMB Btn1 CompareVisual SelectionBox1 LocatePointer SelectionBox1 RSelectionListItem 8 ClickMB Btn1 2 CompareVisual SelectionBox1 # C) Continue # Move the pointer into the client window. Press the backspace key # once. Type \"3\". Press the return key. \"ok: parse03\" should # appear in the xterm window. LocatePointer SelectionBox1 RSelectionText ClickMB Btn1 ClickKey KBackSpace ClickKey K3 ClickKey KReturn CompareVisual SelectionBox1 # Press and hold down MB1 on the \"OK\" button. The button should # appear pressed in. Drag the pointer off of the \"OK\" button. # The button should appear popped out. Release MB1. LocatePointer SelectionBox1 ROkButton PressMB Btn1 LocatePointer SelectionBox1 Off ReleaseMB Btn1 CompareVisual SelectionBox1 # Click MB1 on the \"Apply\" button. \"apply: parse03\" should # appear in the xterm window. LocatePointer SelectionBox1 RApplyButton ClickMB Btn1 CompareVisual SelectionBox1 # Click MB1 on the \"Cancel\" button. \"cancel: parse03\" should # appear in the xterm window. LocatePointer SelectionBox1 RCancelButton ClickMB Btn1 CompareVisual SelectionBox1 # Click MB1 on the \"Help\" button. LocatePointer SelectionBox1 RHelpButton ClickMB Btn1 CompareVisual SelectionBox1 # C) Continue # Move the pointer into the \"test:\" selection text widget. Press # the backspace key twice. Type \"25\". Click MB1 on the \"OK # button. \"noMatch: parse25\" should appear in the xterm window. LocatePointer SelectionBox1 RSelectionText ClickMB Btn1 ClickKey KBackSpace ClickKey KBackSpace ClickKey K2 ClickKey K5 LocatePointer SelectionBox1 ROkButton ClickMB Btn1 CompareVisual SelectionBox1 # Move pointer out of the client window. Press and hold down MB1. # Move pointer back into the client window. Move the pointer out # of the client window. Release MB1. LocatePointer SelectionBox1 Off PressMB Btn1 LocatePointer SelectionBox1 LocatePointer SelectionBox1 Off ReleaseMB Btn1 CompareVisual SelectionBox1 # C) Continue # The InstructionBox's help button will now become sensitive and will # be labeled \"Measure\". # Press the Measure button. A new dialog appears which allows # you to examine the relationship between textColumns and width. # Everytime the dialog pops up, the values displayed # are the current values for those resources of the SelectionBox. LocatePointer InstructionBox RHelpButton ClickMB Btn1 LocatePointer ScaleWidth RScaleSlider DragSliderValue Right 300 LocatePointer ScaleColumns RScaleSlider DragSliderValue Right 50 LocatePointer ScaleOK ClickMB Btn1 CompareVisual SelectionBox1 # Try setting the width larger and smaller, pressing OK to actually # apply the change. LocatePointer InstructionBox RHelpButton ClickMB Btn1 LocatePointer ScaleWidth RScaleSlider DragSliderValue Right 450 LocatePointer ScaleColumns RScaleSlider DragSliderValue Right 60 LocatePointer ScaleOK ClickMB Btn1 CompareVisual SelectionBox1 # Now set the number of columns larger and smaller. LocatePointer InstructionBox RHelpButton ClickMB Btn1 LocatePointer ScaleWidth RScaleSlider DragSliderValue Left 250 LocatePointer ScaleColumns RScaleSlider DragSliderValue Left 15 LocatePointer ScaleOK ClickMB Btn1 CompareVisual SelectionBox1 # C) Continue # The text area of the selection box has been unmanaged. CompareVisual SelectionBox1 # Try changing width and textColumns again. LocatePointer InstructionBox RHelpButton ClickMB Btn1 LocatePointer ScaleWidth RScaleSlider DragSliderValue Left 200 LocatePointer ScaleColumns RScaleSlider DragSliderValue Right 50 LocatePointer ScaleOK ClickMB Btn1 CompareVisual SelectionBox1 # If you click on any of the buttons in the SelectionBox, that button will be # unmanaged. Unmanage each button in turn and observe the # effect on width and textColumns. LocatePointer SelectionBox1 ROkButton ClickMB Btn1 CompareVisual SelectionBox1 LocatePointer SelectionBox1 RCancelButton ClickMB Btn1 CompareVisual SelectionBox1 LocatePointer SelectionBox1 RApplyButton ClickMB Btn1 CompareVisual SelectionBox1 LocatePointer SelectionBox1 RHelpButton ClickMB Btn1 CompareVisual SelectionBox1 # E) Exit