1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
/*
* 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
*/
/*
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 <Tab>. The highlight will now be on the horizontal scrollbar.
Use the Arrow keys to scroll through the entire Text area horizontally.
#) Press <Shift> <Tab>. 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 <Tab> to put the focus in the text area, and press
the PageDown and PageUp keys. The text should scroll.
E)
|