Blob Blame History Raw
/* $XConsortium: Notebook3d.dat /main/4 1995/07/17 10:18:30 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 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.
C)

#) Set  childType to PAGE.
#) Select "Set Child Type" from the "Set Child Values" menu to set the 
   childType resource to PAGE.
#) 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.
#) Select "Create Child" from the "Child" menu.
#) Select "XmSelectionBox" from the list of choices in the SelectionDialog.
   Click on the "OK" button of the SelectionDialog.
#) This will create a SelectionBox page associated with page number 1
C)


#) Set the value of the "Back Page Size" scale to 50.
#) Select "Set Back Page Size" from the "Set Notebook Values" menu.
#) The thickness of the back page rendering should be increased to 50.
C)


#) 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.
C)

#) Type "blue" into the "Back Page Foreground" Text.
#) Hit return. 
#) The foreground of the back pages should be blue.
C)

#) Type "red" into the "Back Page Background" Text.
#) Hit return. 
#) The background of the back pages should be red.
C)


#) Type "green" into the "Frame Background" Text.
#) Hit return. 
#) The background of the Notebook's frame should be green. In this case,
   there will be a green area to the left of the page scroller.
C)

#) Set bindingType to NONE.
   Select "Set Binding Type" from the "Set Notebook Values" menu.
   The Notebook should have no binding.
#) Set bindingType to SPIRAL.
   Select "Set Binding Type" from the "Set Notebook Values" menu.
   The Notebook should now have a spiral binding.
#) Set bindingType to SOLID.
   Select "Set Binding Type" from the "Set Notebook Values" menu.
   The Notebook should have a solid binding.
#) Set the value of the "Binding Width" scale to 20.
   Select "Set Binding Width" from the "Set Notebook Values" menu.
#) Set bindingType to PIXMAP.
   Select "Set Binding Type" from the "Set Notebook Values" menu.
   The Notebook should have a gnu pixmap binding.
#) Set bindingType to PIXMAP_OVERLAP_ONLY.
   Select "Set Binding Type" from the "Set Notebook Values" menu.
   The Notebook should have a gnu pixmap binding constrained within the
   binding width.
C)

#) Set childType to STATUS_AREA
#) 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 "XmLabel" from 
   the list of choices, and click on the OK button of the SelectionDialog.
#) A Label status area should appear associated with page 1.
C)

#) Set the value of the "Inner Margin Width" scale to 25.
#) Set the value of the "Inner Margin Height" 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.
#) 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.
C)





#) Set childType to MAJOR_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 PushButton major tab should appear associated with page 1.
#) Repeat the above steps, setting pageNumber to 2, for a PushButton
   major tab associated with page 2.
C)

!) /* test the callback structure */
#) Go to page 2.
#) 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


E)