/* * @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 */ /* $XConsortium: ScrollWin4.h /main/7 1995/07/13 19:50:16 drk $ */ /* * (c) Copyright 1989, HEWLETT-PACKARD COMPANY */ #include Boolean wait; Widget ContinuePopup = NULL; static void Pause(); static void FlushEvents(); static Widget CreateContinuePopup(); static XtCallbackProc ResizeDrawAreaCB(); static XtCallbackProc ContinueCB(); static XtCallbackProc actCB(); static XtCallbackProc QuitCB(); static char *Pause_events[] = { "1) A Scrolled Window with horizontal and vertical scrollbars should\n\ appear. The scrollbars should be on top and on the left. The background\n\ of the ScrolledWindow should be white. The work area of the ScrolledWindow\n\ should contain a DrawingArea with two ArrowButtons. The ArrowButtons\n\ should have coral and violet backgrounds respectively. XmNspacing should\n\ be set at 20 for the ScrolledWindow.\n\ 2) Move the slider on the vertical scrollbar until the second violet colored\n\ ArrowButton appears.\n\ 3) Press Shift until the hightlight is in the work area with the Arrow Buttons.\n\ 4) Press the KSelect key (Space Bar). An Activate Callback message should be\n\ printed in the term window.\n\ 5) Press the Down Arrow Key. Then press KSelect again. Another message should\n\ be printed in the term window.\n\ 6) Move the horizontal scrollbars slider all the way to the right. The Drawing\n\ Area and it's contents should scroll to the right.\n\ 7) Continue for more testing.\n", "1) The size of the ArrowButtons should have been increased to 500x500 for\n\ each PushButton.\n\ 2) Move the slider on the vertical scrollbar until the second PushButton\n\ is visible.\n\ 3) Press MB1 in PushButton1 (Coral colored). An activate Callback message\n\ should be printed in the term window.\n\ 4) Press Shift until the hightlight is in the work area with the Arrow\n\ Buttons.\n\ 5) Press . The ScrolledWindow should scroll all the way to the top.\n\ 6) Press . The ScrolledWindow should scroll to the end of the window.\n\ 7) Continue for more testing.\n", "1) PushButton1 (Coral) should now be Unmanaged and should not be visible.\n\ 2) Use the vertical scrollbars to scroll to the Violet PushButton.\n\ 3) Continue for more testing.\n", "1) PushButton2 (Violet) and the DrawingArea should now be Unmanaged and\n\ nothing should be visible.\n\ 2) Continue for more testing.\n", "1) All widgets should be managed again, and everthing should be visible.\n\ 2) Use the scrollbars to \"Look At\" all of the widgets.\n\ 3) Press Shift until the hightlight is in the work area with the Arrow\n\ Buttons.\n\ 4) Press KPageUp. The ScrolledWindow should scroll upwards one page.\n\ 5) Press KPageDown. The ScrolledWindow should scroll downwards one page.\n\ 6) Continue for more testing.\n", "1) The width and the height of the ArrowButtons should now change to 175.\n\ This should cause the horizontal scrollbar to disappear.\n\ 2) Use the vertical scrollbar to \"Look At\" all of the widgets.\n\ 3) Continue for more testing.\n", "1) The width and height of the ScrolledWindow should now be 125. This\n\ should cause the window to shrink and the horizontal scrollbar to reappear.\n\ 2) Use the horizontal and vertical scrollbars to \"Look At\" all of the widgets.\n\ 3) Continue for more testing.\n", "1) The width and height of the ScrolledWindow should now be 250. This\n\ should cause the window to expand to the point that no scrollbars should\n\ be present.\n\ 2) Press Kselect. An Activate Callback message will be printed in the term\n\ window.\n\ 3) Press the Down Arrow Key. Then press KSelect. Another Activate Callback\n\ message will be printed in the term window.\n\ 4) Continue for more testing\n", "1) The Drawing Area should have been UnMapped. No widgets\n\ should be visible.\n\ 2) Continue for more testing\n", "1) The Drawing Area should have been Mapped again. All widgets\n\ should be visible.\n\ 2) Test Finished -- Exit Please" }; int Pause_cnt = 0; XtAppContext app_context;