# $XConsortium: Notebook3b.scr /main/4 1995/07/17 20:31:44 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 NoteBook Widget will appear on your screen. It will have all # the default settings. # There will be an empty ScrolledList in the upper left of your screen. This # will be dynamically updated with the names of any widgets you create during # the test. # This test tests the 8 different visual configurations of the # NoteBook, which depend on the values XmNorientation and # XmNbackPagePlacement. CompareVisual Notebook Continue # There will be a SpinButton on the bottom right side of # the NoteBook. This is the Page Scroller child of the Notebook # that should be observed when checking visual configurations. # Set "Child Type" to PAGE. LocatePointer TogglenotebookChildType0 ClickMB Btn1 LocatePointer ChildCascade1 PressMB Btn1 LocatePointer notebookChildTypePB1 ReleaseMB Btn1 # Set the "Set Page Number" scale to 1. # Select "Set pageNumber" from the "Set Child Values" menu. LocatePointer PageNumberScale RScaleSlider DragSliderValue Right 1 LocatePointer ChildCascade1 PressMB Btn1 LocatePointer pageNumberPB1 ReleaseMB Btn1 # Post the menu "Child", and select "Create Child". LocatePointer MenuCascade2 PressMB Btn1 LocatePointer ChildPB1 ReleaseMB Btn1 # A SelectionDialog will appear on your screen. Choose "XmMessageBox". # from the list of choices. Click on the "OK" button of the # SelectionDialog. # A MessageBox page will appear on the screen. LocatePointer ChildWidgetSelectionDialog RSelectionListItem 11 ClickMB Btn1 LocatePointer ChildWidgetSelectionDialog ROkButton ClickMB Btn1 # Set "Child Type" to MAJOR_TAB. LocatePointer TogglenotebookChildType1 ClickMB Btn1 LocatePointer ChildCascade1 PressMB Btn1 LocatePointer notebookChildTypePB1 ReleaseMB Btn1 # Set the "Set Page Number" scale to 1. # Select "Set pageNumber" from the "Set Child Values" menu. # page # has already been set LocatePointer ChildCascade1 PressMB Btn1 LocatePointer pageNumberPB1 ReleaseMB Btn1 # Post the menu "Child", and select "Create Child". LocatePointer MenuCascade2 PressMB Btn1 LocatePointer ChildPB1 ReleaseMB Btn1 # A SelectionDialog will appear on your screen. Choose "XmPushButton" # from the list of choices. Click on the "OK" button of the # SelectionDialog. # A PushButton will appear on the right side of the Notebook. It # will have the name "MajorTab1". This is the Major Tab child which # should be observed when checking visual configurations. LocatePointer ChildWidgetSelectionDialog RSelectionListItem 13 ClickMB Btn1 LocatePointer ChildWidgetSelectionDialog ROkButton ClickMB Btn1 # Set "Child Type" to MINOR_TAB. LocatePointer TogglenotebookChildType2 ClickMB Btn1 LocatePointer ChildCascade1 PressMB Btn1 LocatePointer notebookChildTypePB1 ReleaseMB Btn1 # Set the "Set Page Number" scale to 1. # Select "Set pageNumber" from the "Set Child Values" menu. #page # has already been set LocatePointer ChildCascade1 PressMB Btn1 LocatePointer pageNumberPB1 ReleaseMB Btn1 # Post the menu "Child", and select "Create Child". LocatePointer MenuCascade2 PressMB Btn1 LocatePointer ChildPB1 ReleaseMB Btn1 # Choose "XmPushButton" from the list of choices in the SelectionDialog # and click on the "OK" button of the SelectionDialog. # A PushButton will appear at the bottom of the Notebook. It # will have the name "MinorTab1". This is the Minor Tab child which # should be observed when checking visual configurations. LocatePointer ChildWidgetSelectionDialog RSelectionListItem 13 ClickMB Btn1 LocatePointer ChildWidgetSelectionDialog ROkButton ClickMB Btn1 # Set "Child Type" to STATUS_AREA. LocatePointer TogglenotebookChildType3 ClickMB Btn1 LocatePointer ChildCascade1 PressMB Btn1 LocatePointer notebookChildTypePB1 ReleaseMB Btn1 # Set the "Set Page Number" scale to 1. # Select "Set pageNumber" from the "Set Child Values" menu. #page # has already been set LocatePointer ChildCascade1 PressMB Btn1 LocatePointer pageNumberPB1 ReleaseMB Btn1 # Post the menu "Child", and select "Create Child". LocatePointer MenuCascade2 PressMB Btn1 LocatePointer ChildPB1 ReleaseMB Btn1 # Choose "XmLabel" from the list of choices in the SelectionDialog # and click on the "OK" button of the SelectionDialog. # A Label will appear at the bottom left side of the Notebook. It # will have the name "StatusArea1". This is the Status Area child which # should be observed when checking visual configurations. LocatePointer ChildWidgetSelectionDialog RSelectionListItem 7 ClickMB Btn1 LocatePointer ChildWidgetSelectionDialog ROkButton ClickMB Btn1 Continue # Set "Back Page Placement" to BOTTOM_RIGHT. LocatePointer TogglePlacement0 ClickMB Btn1 # Select "Set backPagePlacement" from the "Set Notebook Values" menu. LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer PlacementPB1 ReleaseMB Btn1 # Set "Orientation" to HORIZONTAL. LocatePointer ToggleOrientation0 ClickMB Btn1 # Select "Set orientation" from the "Set Notebook Values" menu. # No visual change should take place, since these are the default values # for the 2 resources. LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer OrientationPB1 ReleaseMB Btn1 CompareVisual Notebook Continue # Set "Back Page Placement" to BOTTOM_RIGHT. # Select "Set backPagePlacement" from the "Set Notebook Values" menu. # Set "Orientation" to VERTICAL. # Select "Set orientation" from the "Set Notebook Values" menu. # The visual configuration of the NoteBook should be as follows: # @) - Binding : Top # @) - Major Tab : Bottom # @) - Minor Tab : Right # @) - Status Area : Bottom Left # @) - Page Scroller : Bottom Right LocatePointer TogglePlacement0 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer PlacementPB1 ReleaseMB Btn1 LocatePointer ToggleOrientation1 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer OrientationPB1 ReleaseMB Btn1 CompareVisual Notebook Continue # Set "Back Page Placement" to BOTTOM_LEFT. # Select "Set backPagePlacement" from the "Set Notebook Values" menu. # Set "Orientation" to HORIZONTAL # Select "Set orientation" from the "Set Notebook Values" menu. # The visual configuration of the NoteBook should be as follows: # @) - Binding : Right # @) - Major Tab : Left # @) - Minor Tab : Bottom # @) - Status Area : Bottom Right # @) - Page Scroller : Bottom Left LocatePointer TogglePlacement1 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer PlacementPB1 ReleaseMB Btn1 LocatePointer ToggleOrientation0 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer OrientationPB1 ReleaseMB Btn1 CompareVisual Notebook Continue # Set "Back Page Placement" to BOTTOM_LEFT. # Select "Set backPagePlacement" from the "Set Notebook Values" menu. # Set "Orientation" to VERTICAL. # Select "Set orientation" from the "Set Notebook Values" menu. # The visual configuration of the NoteBook should be as follows: # @) - Binding : Top # @) - Major Tab : Bottom # @) - Minor Tab : Left # @) - Status Area : Bottom Right # @) - Page Scroller : Bottom Left LocatePointer TogglePlacement1 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer PlacementPB1 ReleaseMB Btn1 LocatePointer ToggleOrientation1 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer OrientationPB1 ReleaseMB Btn1 CompareVisual Notebook Continue # Set "Back Page Placement" to TOP_RIGHT. # Select "Set backPagePlacement" from the "Set Notebook Values" menu. # Set "Orientation" to HORIZONTAL. # Select "Set orientation" from the "Set Notebook Values" menu. # The visual configuration of the NoteBook should be as follows: # @) - Binding : Left # @) - Major Tab : Right # @) - Minor Tab : Top # @) - Status Area : Bottom Left # @) - Page Scroller : Bottom Right LocatePointer TogglePlacement2 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer PlacementPB1 ReleaseMB Btn1 LocatePointer ToggleOrientation0 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer OrientationPB1 ReleaseMB Btn1 CompareVisual Notebook Continue # Set "Back Page Placement" to TOP_RIGHT. # Select "Set backPagePlacement" from the "Set Notebook Values" menu. # Set "Orientation" to VERTICAL. # Select "Set orientation" from the "Set Notebook Values" menu. # The visual configuration of the NoteBook should be as follows: # @) - Binding : Bottom # @) - Major Tab : Top # @) - Minor Tab : Right # @) - Status Area : Bottom Left # @) - Page Scroller : Bottom Right LocatePointer TogglePlacement2 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer PlacementPB1 ReleaseMB Btn1 LocatePointer ToggleOrientation1 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer OrientationPB1 ReleaseMB Btn1 CompareVisual Notebook Continue # Set "Back Page Placement" to TOP_LEFT. # Select "Set backPagePlacement" from the "Set Notebook Values" menu. # Set "Orientation" to HORIZONTAL. # Select "Set orientation" from the "Set Notebook Values" menu. # The visual configuration of the NoteBook should be as follows: # @) - Binding : Right # @) - Major Tab : Left. # @) - Minor Tab : Top # @) - Status Area : Bottom Right # @) - Page Scroller : Bottom Left LocatePointer TogglePlacement3 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer PlacementPB1 ReleaseMB Btn1 LocatePointer ToggleOrientation0 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer OrientationPB1 ReleaseMB Btn1 CompareVisual Notebook Continue # Set "Back Page Placement" to TOP_LEFT. # Select "Set backPagePlacement" from the "Set Notebook Values" menu. # Set "Orientation" to VERTICAL. # Select "Set orientation" from the "Set Notebook Values" menu. # The visual configuration of the NoteBook should be as follows: # @) - Binding : Bottom # @) - Major Tab : Top # @) - Minor Tab : Left # @) - Status Area : Bottom Right # @) - Page Scroller : Bottom Left LocatePointer TogglePlacement3 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer PlacementPB1 ReleaseMB Btn1 LocatePointer ToggleOrientation1 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer OrientationPB1 ReleaseMB Btn1 CompareVisual Notebook Exit