# $XConsortium: Notebook3d.scr /main/4 1995/07/17 20:31:58 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 will appear on your screen, with all the default settings. # There will be an empty list inn the upper left hand corner of your screen, # which will be dynamically updated with the widgets you create during the # test. WindowMove Notebook 700 500 CompareVisual Notebook Continue # Set childType to PAGE. # Select "Set Child Type" from the "Set Child Values" menu to set the # childType resource to PAGE. LocatePointer TogglenotebookChildType0 ClickMB Btn1 LocatePointer ChildCascade1 PressMB Btn1 LocatePointer notebookChildTypePB1 ReleaseMB Btn1 # Set the value of the "Page Number" scale to 1. # Select "Set Page Number" from the "Set Child Values" menu to set # the pageNumber resource to 1. LocatePointer PageNumberScale RScaleSlider DragSliderValue Right 1 LocatePointer ChildCascade1 PressMB Btn1 LocatePointer pageNumberPB1 ReleaseMB Btn1 # Select "Create Child" from the "Child" menu. LocatePointer MenuCascade2 PressMB Btn1 LocatePointer ChildPB1 ReleaseMB Btn1 # A SelectionDialog will appear on your screen. Select "XmSelectionBox" # from the list of choices. Click on the "OK" button of the SelectionDialog. # This will create a SelectionBox page with apge number 1 LocatePointer ChildWidgetSelectionDialog RSelectionListItem 19 ClickMB Btn1 LocatePointer ChildWidgetSelectionDialog ROkButton ClickMB Btn1 CompareVisual Notebook Continue # Set the value of the "Back Page Number" scale to 0. # Select "Set Back Page Number" from the "Set Notebook Values" menu. # The number of lines painted for the back pages should be reduced to 1. # Set the value of the "Back Page Number" scale to 30. # Select "Set Back Page Number" from the "Set Notebook Values" menu. # The number of lines painted for the back pages should be 25. # Set the value of the "Back Page Number" scale to 15. # Select "Set Back Page Number" from the "Set Notebook Values" menu. # The number of lines painted for the back pages should be 15. LocatePointer NotebookScale4 RScaleSlider DragSliderValue Right 0 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer ApplyScalePB3 ReleaseMB Btn1 CompareVisual Notebook LocatePointer NotebookScale4 RScaleSlider DragSliderValue Right 30 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer ApplyScalePB3 ReleaseMB Btn1 CompareVisual Notebook LocatePointer NotebookScale4 RScaleSlider DragSliderValue Right 15 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer ApplyScalePB3 ReleaseMB Btn1 CompareVisual Notebook Continue #) Set the value of the "Back Page Number" scale to 1. #) Select "Set Back Page Number" from the "Set Notebook Values" menu. #) The number of lines painted for the back pages should be reduced to 1. LocatePointer NotebookScale3 RScaleSlider DragSliderValue Right 1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer ApplyScalePB3 ReleaseMB Btn1 CompareVisual Notebook Continue # Type "blue" into the "Back Page Foreground" Text. # Hit return. # The foreground of the back pages should be blue. LocatePointer NotebookText0 ClickMB Btn1 InputString "blue" ClickKey KReturn CompareVisual Notebook Continue # Type "red" into the "Back Page Background" Text. # Hit return. # The background of the back pages should be red. LocatePointer NotebookText1 ClickMB Btn1 InputString "red" ClickKey KReturn CompareVisual Notebook Continue # Type "green" into the "Frame Background" Text. # Hit return. # The background of the Notebook's frame should be green. LocatePointer NotebookText2 ClickMB Btn1 InputString "green" ClickKey KReturn CompareVisual Notebook Continue # Set bindingType to SPIRAL. # Select "Set Binding Type" from the "Set Notebook Values" menu. # The Notebook should now have a spiral binding. LocatePointer ToggleBinding2 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer BindingPB1 ReleaseMB Btn1 CompareVisual Notebook # Set bindingType to NONE. # Select "Set Binding Type" from the "Set Notebook Values" menu. # The Notebook should have no binding. LocatePointer ToggleBinding0 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer BindingPB1 ReleaseMB Btn1 CompareVisual Notebook # Set bindingType to SOLID. # Repeat steps 8 & 9. # The Notebook should have a solid binding. LocatePointer ToggleBinding1 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer BindingPB1 ReleaseMB Btn1 CompareVisual Notebook # Set the value of the "Binding Width" scale to 20. # Select "Set Binding Width" from the "Set Notebook Values" menu. LocatePointer NotebookScale5 RScaleSlider DragSliderValue Right 20 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer ApplyScalePB5 ReleaseMB Btn1 CompareVisual Notebook # Set bindingType to PIXMAP. # Repeat steps 8 & 9. # The Notebook should have a gnu pixmap binding. LocatePointer ToggleBinding3 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer BindingPB1 ReleaseMB Btn1 CompareVisual Notebook # Set bindingType to PIXMAP_OVERLAP_ONLY. # Repeat steps 8 & 9. # The Notebook should have a gnu pixmap binding constrained within the # binding width. LocatePointer ToggleBinding4 ClickMB Btn1 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer BindingPB1 ReleaseMB Btn1 CompareVisual Notebook Continue # Set childType to STATUS_AREA. # Select "Set Child Type" from the "Set Child Values" menu. LocatePointer TogglenotebookChildType3 ClickMB Btn1 LocatePointer ChildCascade1 PressMB Btn1 LocatePointer notebookChildTypePB1 ReleaseMB Btn1 # Set the value of the "Page Number" scale to 1. # Select "Set Page Number" from the "Set Child Values" menu. LocatePointer PageNumberScale RScaleSlider DragSliderValue Right 1 LocatePointer ChildCascade1 PressMB Btn1 LocatePointer pageNumberPB1 ReleaseMB Btn1 # Select "Create Child" from the "Child" menu. LocatePointer MenuCascade2 PressMB Btn1 LocatePointer ChildPB1 ReleaseMB Btn1 # A SelectionDialog will appear on your screen. Choose "XmLabel" from # the list of choices, and click on the OK button of the SelectionDialog. # A Label page should appear which is associated with page 1. LocatePointer ChildWidgetSelectionDialog RSelectionListItem 7 ClickMB Btn1 LocatePointer ChildWidgetSelectionDialog ROkButton ClickMB Btn1 Continue # Set the value of the "Inner Margin Width" scale to 25. # Select "Set Inner Margin Width" from the "Set Notebook Values" menu. # The left/right margins between the page, the status area, and the page # scroller should have been increased to 25. LocatePointer NotebookScale6 RScaleSlider DragSliderValue Right 25 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer ApplyScalePB6 ReleaseMB Btn1 CompareVisual Notebook # Set the value of the "Inner Margin Height" scale to 25. # Select "Set Inner Margin Height" from the "Set Notebook Values" menu. # The top/bottom margins between the page, the status area, and the page # scroller should have been increased to 25. LocatePointer NotebookScale7 RScaleSlider DragSliderValue Right 25 LocatePointer NotebookCascade1 PressMB Btn1 LocatePointer ApplyScalePB7 ReleaseMB Btn1 CompareVisual Notebook Continue # Set childType to MAJOR_TAB. # Select "Set Child Type" from the "Set Child Values" menu. LocatePointer TogglenotebookChildType1 ClickMB Btn1 LocatePointer ChildCascade1 PressMB Btn1 LocatePointer notebookChildTypePB1 ReleaseMB Btn1 # Set the value of the "Page Number" scale to 1. # Select "Set Page Number" from the "Set Child Values" menu. LocatePointer PageNumberScale RScaleSlider DragSliderValue Right 1 LocatePointer ChildCascade1 PressMB Btn1 LocatePointer pageNumberPB1 ReleaseMB Btn1 # Select "Create Child" from the "Child" menu. # A SelectionDialog will appear on your screen. Choose "XmPushButton" from # the list of choices, and click on the OK button of the SelectionDialog. # A PushButton major tab should appear associated with page 1. LocatePointer MenuCascade2 PressMB Btn1 LocatePointer ChildPB1 ReleaseMB Btn1 LocatePointer ChildWidgetSelectionDialog RSelectionListItem 13 ClickMB Btn1 LocatePointer ChildWidgetSelectionDialog ROkButton ClickMB Btn1 # Repeat the above steps, setting pageNumber to 2, for a PushButton # major tab associated with page 2. # Set childType to MAJOR_TAB. # Select "Set Child Type" from the "Set Child Values" menu. LocatePointer TogglenotebookChildType1 ClickMB Btn1 LocatePointer ChildCascade1 PressMB Btn1 LocatePointer notebookChildTypePB1 ReleaseMB Btn1 # Set the value of the "Page Number" scale to 2. # Select "Set Page Number" from the "Set Child Values" menu. LocatePointer PageNumberScale RScaleSlider DragSliderValue Right 2 LocatePointer ChildCascade1 PressMB Btn1 LocatePointer pageNumberPB1 ReleaseMB Btn1 # Select "Create Child" from the "Child" menu. # A SelectionDialog will appear on your screen. Choose "XmPushButton" from # the list of choices, and click on the OK button of the SelectionDialog. # A PushButton major tab should appear associated with page 2. LocatePointer MenuCascade2 PressMB Btn1 LocatePointer ChildPB1 ReleaseMB Btn1 LocatePointer ChildWidgetSelectionDialog RSelectionListItem 13 ClickMB Btn1 LocatePointer ChildWidgetSelectionDialog ROkButton ClickMB Btn1 # Set childType to MINOR_TAB. # Select "Set Child Type" from the "Set Child Values" menu. # Set the value of the "Page Number" scale to 1. # Select "Set Page Number" from the "Set Child Values" menu. # Select "Create Child" from the "Child" menu. # A SelectionDialog will appear on your screen. Choose "XmPushButton" from # the list of choices, and click on the OK button of the SelectionDialog. # A MinorTab associated with Page1 will appear LocatePointer TogglenotebookChildType2 ClickMB Btn1 LocatePointer ChildCascade1 PressMB Btn1 LocatePointer notebookChildTypePB1 ReleaseMB Btn1 LocatePointer PageNumberScale RScaleSlider DragSliderValue Left 1 LocatePointer ChildCascade1 PressMB Btn1 LocatePointer pageNumberPB1 ReleaseMB Btn1 LocatePointer MenuCascade2 PressMB Btn1 LocatePointer ChildPB1 ReleaseMB Btn1 LocatePointer ChildWidgetSelectionDialog RSelectionListItem 13 ClickMB Btn1 LocatePointer ChildWidgetSelectionDialog ROkButton ClickMB Btn1 Continue # /* test the callback structure */ # Click on the decrement arrow of the page scroller. # The following message should appear on the term window: # Page has been changed # Reason is XmCR_PAGE_SCROLLER_DECREMENT # Current page is 2 # Desired page is 1 # Click on the increment arrow of the page scroller. # The following message should appear on the term window: # Page has been changed # Reason is XmCR_PAGE_SCROLLER_INCREMENT # Current page is 1 # Desired page is 2 # Click on MajorTab1. # The following message should appear on the term window: # Page has been changed # Reason is XmCR_MAJOR_TAB # Current page is 2 # Desired page is 1 # Click on MajorTab2. # The following message should appear on the term window: # Page has been changed # Reason is XmCR_MAJOR_TAB # Current page is 1 # Desired page is 2 WindowResize Notebook SouthEast 300 300 LocatePointer PageScroller RDecrementBtn ClickMB Btn1 CompareVisual Notebook LocatePointer PageScroller RIncrementBtn ClickMB Btn1 CompareVisual Notebook LocatePointer MajorTab1 ClickMB Btn1 CompareVisual Notebook LocatePointer MajorTab2 ClickMB Btn1 CompareVisual Notebook LocatePointer MajorTab1 ClickMB Btn1 CompareVisual Notebook LocatePointer MinorTab1 ClickMB Btn1 CompareVisual Notebook Exit