Blob Blame History Raw
# $XConsortium: Notebook3b.scr /main/4 1995/07/17 20:31:44 drk $
#
# Motif
#
# Copyright (c) 1987-2012, The Open Group. All rights reserved.
#
# These libraries and programs are free software; you can
# redistribute them and/or modify them under the terms of the GNU
# Lesser General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# These libraries and programs are distributed in the hope that
# they will be useful, but WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with these librararies and programs; if not, write
# to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
# Floor, Boston, MA 02110-1301 USA
# 
# 
# 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