|
Packit |
b099d7 |
/*
|
|
Packit |
b099d7 |
* Motif
|
|
Packit |
b099d7 |
*
|
|
Packit |
b099d7 |
* Copyright (c) 1987-2012, The Open Group. All rights reserved.
|
|
Packit |
b099d7 |
*
|
|
Packit |
b099d7 |
* These libraries and programs are free software; you can
|
|
Packit |
b099d7 |
* redistribute them and/or modify them under the terms of the GNU
|
|
Packit |
b099d7 |
* Lesser General Public License as published by the Free Software
|
|
Packit |
b099d7 |
* Foundation; either version 2 of the License, or (at your option)
|
|
Packit |
b099d7 |
* any later version.
|
|
Packit |
b099d7 |
*
|
|
Packit |
b099d7 |
* These libraries and programs are distributed in the hope that
|
|
Packit |
b099d7 |
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
Packit |
b099d7 |
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
Packit |
b099d7 |
* PURPOSE. See the GNU Lesser General Public License for more
|
|
Packit |
b099d7 |
* details.
|
|
Packit |
b099d7 |
*
|
|
Packit |
b099d7 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
b099d7 |
* License along with these librararies and programs; if not, write
|
|
Packit |
b099d7 |
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
Packit |
b099d7 |
* Floor, Boston, MA 02110-1301 USA
|
|
Packit |
b099d7 |
*/
|
|
Packit |
b099d7 |
/*
|
|
Packit |
b099d7 |
* HISTORY
|
|
Packit |
b099d7 |
*/
|
|
Packit |
b099d7 |
/*
|
|
Packit |
b099d7 |
static char rcsid[] = "$XConsortium: ScrollText1.dat /main/5 1995/07/13 19:22:58 drk $"
|
|
Packit |
b099d7 |
*/
|
|
Packit |
b099d7 |
#) Click MB1 anywhere in the text widget.
|
|
Packit |
b099d7 |
#) Press the sequence Shift-osfPageDown, and the text will change.
|
|
Packit |
b099d7 |
#) Press the sequence Shift-osfPageDown again and the text will change back.
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
#) Place the pointer in the text widget again, and press the Help key.
|
|
Packit |
b099d7 |
An information box will appear. Press the Dismiss button.
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
/* test case for PIR 2574 */
|
|
Packit |
b099d7 |
#) Give the text window the focus. Click MB1 after the last word in the
|
|
Packit |
b099d7 |
text widget.
|
|
Packit |
b099d7 |
#) Type in ten lines of lines of new text. The scrollbar slider should be
|
|
Packit |
b099d7 |
at the bottom of the trough.
|
|
Packit |
b099d7 |
#) Iconify and deiconify the window or otherwise cause it to be re-exposed.
|
|
Packit |
b099d7 |
#) Confirm that the location of the text does not change within the window.
|
|
Packit |
b099d7 |
/* end of test case for PIR 2574 */
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
/* test case for PIR 2127 */
|
|
Packit |
b099d7 |
@) The text widget should now be displayed in the "variable" font
|
|
Packit |
b099d7 |
and the string should have changed.
|
|
Packit |
b099d7 |
#) Click MB1 just before any of the j's in the string and type a
|
|
Packit |
b099d7 |
few spaces. Verify that no pieces of the character glyphs remain
|
|
Packit |
b099d7 |
where the spaces now are.
|
|
Packit |
b099d7 |
/* end of test case for PIR 2127 */
|
|
Packit |
b099d7 |
/* test case for PIR 4120 */
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
@) The text widget has been destroyed and recreated. It was created as a
|
|
Packit |
b099d7 |
Scrolled Text widget with editMode == XmSINGLE_LINE_EDIT, rows == 3.
|
|
Packit |
b099d7 |
#) Confirm that there is no vertical scrollbar present.
|
|
Packit |
b099d7 |
#) Click on the togglebutton to switch the EditMode to
|
|
Packit |
b099d7 |
XmMULTI_LINE_EDIT. Confirm that a vertical scrollbar is generated.
|
|
Packit |
b099d7 |
Use the vertical scrollbar to scroll through the text.
|
|
Packit |
b099d7 |
#) Click on the togglebutton again to switch the EditMode back to
|
|
Packit |
b099d7 |
XmSINGLE_LINE_EDIT. The vertical scrollbar should disappear and the text
|
|
Packit |
b099d7 |
widget should return to only displaying 1 line.
|
|
Packit |
b099d7 |
/* end of test case for PIR 4120 */
|
|
Packit |
b099d7 |
E)
|