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