/* * @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: ScrollWin5.dat /main/5 1995/07/13 19:50:40 drk $" */ @) A client containing a ScrolledWindow will appear. The ScrolledWindow will contain a Form which will contain three Arrow Buttons. The Arrow Buttons will be colored coral, violet, and yellow. The background color of the ScrolledWindow will be AquaMarine which will apply to the Scrollbars. @) The width and height of the ScrolledWindow will be 200x200. @) The coral Arrow Button will be attached to the Form on the top and the left and will have a height of 200. @) The violet Arrow Button will be attached to the Form on the top, and on the left to the coral Arrow Button with an offset of 10. Its width will be 200. @) The yellow Arrow Button will attached to the Form on the right and on the bottom. It will be attached on the left to the coral Arrow Button, and on the top to the violet Arrow Button both with offsets of 10. Its width and height will be 150. C) #) The top and bottom offsets on the yellow Arrow Button should increase from 10 to 25. This should cause the slider in vertical scrollbar to shrink. #) Use the horizontal and vertical Scrollbars to \"look at\" all the contents of the Scrolled Window. C) #) The yellow Arrow Button should now become Unmanaged. This will cause the Arrow Button to disappear. The Bottom of the ScrolledWindow should now be clipped at the end of the coral Arrow Button. #) Use the horizontal and vertical Scrollbars to \"look at\" all the contents of the Scrolled Window. #) Press Shift until the highlight is in the work area with the Arrow Buttons. #) Use the Down Arrow Key to move the highlight between the visible widgets. You should only be able to move the highlight between the VISIBLE Buttons. C) #) A new Arrow Button should appear. Its color will be white, and it will be attached to the Form on the bottom, the right, and the left. It also will be attached to the Unmanaged yellow Arrow Button on the top. All attachments should be inforced from the Unmanaged yellow Arrow Button. #) Use the horizontal and vertical Scrollbars to \"look at\" all the contents of the Scrolled Window. C) #) The yellow Arrow Button should again become Managed. This will make the Arrow Button visible. All previous attachments should be honored. The arrow direction of the yellow Arrow Button should have changed to XmARROW_LEFT. #) Use the horizontal and vertical Scrollbars to \"look at\" all the contents of the Scrolled Window. C) #) The width and height of the ScrolledWindow should grow from 200x200 to 300x300. This will make all the Arrow Buttons visible. No Scrollbars should be present. C) #) The width and height of the Form should increase to 400x400. This will cause the vertical and horizontal scrollbars to appear again. All widgets should keep there same relative positions as before. #) Use the horizontal and vertical Scrollbars to \"look at\" all the contents of the Scrolled Window. C) #) There should be a change to the client. An attempt to change the X and Y positions of the Form to 50,50 should have succeeded. C) #) The width and height of the ScrolledWindow should change to 100x100. This should cause the client to shrink and only partial amounts of the Arrow Buttons should be visible. All widgets should keep there realtive positions within the form. #) Use the horizontal and vertical Scrollbars to \"look at\" all the contents of the Scrolled Window. E)