# $XConsortium: List6.scr /main/5 1995/07/17 20:22:02 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: @(#)List6.scr 1.2 91/10/23 # Screen 1 # A client with a Scrolled List contained in a Bulletin Board should appear. # The List should have horizontal and vertical scrollbars and should have # ten items partially visible. LocatePointer List1 RListItem 0 CompareVisual List1 # A Message should be printed in the term window stating that the width of # the ScrolledWindow (which is the parent of the List) should be 100. # Move the pointer into the List widget and type . The List should # scroll to the last item and that item should have the highlight, # but should not be selected. ClickKey KEndData CompareVisual List1 # Now type in the List widget. The List should scroll to the # top and the the top item should be highlighted but not selected. ClickKey KBeginData CompareVisual List1 # Press KSelect, item1 should now be selected. The message \"ExtendedSelection # Callback called\" should be printed in the term window. ClickKey KSelect CompareVisual List1 # Now type in the List widget. The List should scroll to # the last item and all items should be selected. ClickKey KEndData CompareVisual List1 # Now type in the List widget. The List should scroll # to the first Item in the List and Item1 should be the only Item Selected. ClickKey KBeginData CompareVisual List1 # C) Continue # Screen 2 # Move the pointer into the List widet and Press the Right arrow key. The # should scroll to the right. Press the Left arrow key. The List should # scroll back to the left. LocatePointer List1 RListItem 0 ClickKey KRight CompareVisual List1 ClickKey KLeft CompareVisual List1 # Move the pointer into the window and click MB1 on Item1. Then drag the # pointer out of the window to the right. The List should scroll to the # right. Move the pointer back into the window and drag the pointer out of # the window to the left. The List should scroll to the left. LocatePointer List1 RListItem 0 PressMB Btn1 LocatePointer List1 Right Wait 5 CompareVisual List1 LocatePointer List1 RListItem 0 LocatePointer List1 Left Wait 5 CompareVisual List1 ReleaseMB Btn1 # C) Continue # The List will grow to a Dimension of (400, 200). The entire width of all # items should be visible. LocatePointer List1 RListItem 0 CompareVisual List1 # Move the pointer into the List and press the Down arrow key. The highlight # should move to the next item but the selection should not follow. Continue # this until you reach Item10. Then press the Down Arrow key again. The List # should scroll downwards and Item11 should be highlighted. Press the Down # arrow key again. The List should now scroll to Item12. ClickKey KDown ClickKey KDown ClickKey KDown ClickKey KDown ClickKey KDown ClickKey KDown ClickKey KDown ClickKey KDown ClickKey KDown ClickKey KDown ClickKey KDown CompareVisual List1 # C) Continue # The Scrolled List should be Unmanaged and a Regular List with 10 visible # items should appear. LocatePointer List2 RListItem 0 CompareVisual List2 # Press F8. The List highlight should change from a solid box to # a dashed line box. This signifies that the List is in Add mode. There # should be no items selected. ClickKey KAddMode CompareVisual List2 # Use the Down arrow key to move to the last item in the list. The highlight # should move as you do this. ClickKey KDown ClickKey KDown ClickKey KDown ClickKey KDown ClickKey KDown ClickKey KDown ClickKey KDown ClickKey KDown ClickKey KDown CompareVisual List2 # Press the Down arrow key again. There should be no visible change. ClickKey KDown CompareVisual List2 # Press the Right arrow key. There should be no visible change. ClickKey KRight CompareVisual List2 # Press the Left arrow key. There should be no visible change. ClickKey KLeft CompareVisual List2 # C) Continue # Select Item5 with the mouse. The item should highlight and an # Extended Selection message should appear in the term window. LocatePointer List2 RListItem 4 ClickMB Btn1 CompareVisual List2 # Press the d Key. Item5 should be deleted, and the focus should # now be on Item4. ClickKey Kd CompareVisual List2 # Select Item1 with the mouse. The item should highlight and an # Extended Selection message should appear in the term window. LocatePointer List2 RListItem 0 ClickMB Btn1 CompareVisual List2 # Press the d Key. Item1 should be deleted, and the focus should # now be on Item2. ClickKey Kd CompareVisual List2 # Press the Space Bar, an Extended Selection message will be # printed in the term window. ClickKey KSpace CompareVisual List2 # Continue selecting and deleting the first item in the list until all are # gone; confirm that the highlighting moves to the next item and that # the application remains stable. LocatePointer List2 RListItem 0 ClickMB Btn1 ClickKey Kd CompareVisual List2 LocatePointer List2 RListItem 0 ClickMB Btn1 ClickKey Kd CompareVisual List2 LocatePointer List2 RListItem 0 ClickMB Btn1 ClickKey Kd CompareVisual List2 LocatePointer List2 RListItem 0 ClickMB Btn1 ClickKey Kd CompareVisual List2 LocatePointer List2 RListItem 0 ClickMB Btn1 ClickKey Kd CompareVisual List2 LocatePointer List2 RListItem 0 ClickMB Btn1 ClickKey Kd CompareVisual List2 LocatePointer List2 RListItem 0 ClickMB Btn1 ClickKey Kd CompareVisual List2 LocatePointer List2 RListItem 0 ClickMB Btn1 ClickKey Kd CompareVisual List2 LocatePointer List2 RListItem 0 ClickMB Btn1 ClickKey Kd CompareVisual List2 LocatePointer List2 RListItem 0 ClickMB Btn1 ClickKey Kd CompareVisual List2 # E) Exit