/* * @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 */ /* static char rcsid[] = "$XConsortium: ScrollWin3.dat /main/6 1995/07/13 19:49:19 drk $" */ /* test case for PIR 2945; test case for PIR 3180 */ @) A client containing a ScrolledWindow with no children will appear. The ScrolledWindow has its scrolledWindowMarginWidth/Height set to 20 and has a translation installed on its clip window. It will also perform a XmProcessTraversal XmTRAVERSE_CURRENT to the empty ScrolledWindow. /* end of test case for PIR 3180 */ #) Click MB1 in the clip window of the ScrolledWindow. #) Press the 't' key. There should be a message in the stdout window saying "Translation successfully set." No core dump should occcur. /* end of test case for PIR 2945 */ C) @) The ScrolledWindow will now contain a DrawingArea which will contain a Text widget. The DrawingArea will be green in color, while the ScrolledWindow will be AquaMarine. The ScrolledWindow will have a scrollingPolicy of XmAPPLICATION_DEFINED, and the scrollbars will be created independently. C) #) Click MB1 in the trough area of the horizontal scrollbar. The cursor will move with each click. When the cursor reaches the end of the Text area, the Text widget will scroll to the right. #) Click MB1 in the trough area of the vertical scrollbar. The cursor will move to the next line in the Text widget. When the cursor is on the last visible line, it will be able to scroll down two more lines of text. #) Press . The highlight will now be on the horizontal scrollbar. Use the Arrow keys to scroll through the entire Text area horizontally. #) Press . The highlight now will be in the vertical scrollbar. Use the Arrow keys again to scroll through the entire Text area vertically. C) #) Two Warning messages will be printed in the term window. The messages will state: @) "Cannot set a visual policy of CONSTANT in APPLICATION_DEFINED mode." and "Cannot set AS_NEEDED scrollbar policy with a visual policy of VARIABLE." #) The scrollbars will now be found on the top and on the right of the Text widget. #) Use the scrollbars to scroll through the entire Text area. C) #) The scrollbars will now be found on the left and on the bottom of the Text widget. Use the scrollbars to scroll through the entire Text area. C) #) Automatic and static scrollbars appear on the bottom and on the left of the Text widget. #) Resize the window smaller so that the scrollbars are not completely filled. Press to put the focus in the text area, and press the PageDown and PageUp keys. The text should scroll. E)