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
|
# $XConsortium: TextWcs2.scr /main/5 1995/07/17 20:43:27 drk $
#
# 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
#
# @) A single line text widget with the string 'Sample Text' will appear in
# the test window. The text is red on a white background.
# #) Move the pointer into the text widget and press ANY key. No matter
# what key was pressed, an 'A' will appear.
LocatePointer Text1 RTextChar 5
ClickKey Kr
CompareVisual Text1
# #) Press another key. This time a 'B' will appear in the text widget.
ClickKey Kp
CompareVisual Text1
# #) Repeat this cycle and you will print out the entire alphabet.
InputString "this text will never appear"
CompareVisual Text1
# C)
Continue
# #) Move the pointer into the text widget and press ANY key. No matter
# what key was pressed, an 'A' followed by a very long series of
# digits will appear.
LocatePointer Text1 RTextChar 5
ClickKey Kp
CompareVisual Text1
# #) Press another key. This time a 'B' followed by a very long series
# of digits will appear in the text widget.
ClickKey Kr
CompareVisual Text1
# #) Repeat this cycle ten times and it will print out more letters
# of the alphabet each
# followed by a long digit series.
# (This may be slow to watch - after typing the keys, use osfEndData
# to jump to the end of the text and check that it has updated correctly.)
InputString "no show"
ClickKey KDown
ClickKey KDown
ClickKey KDown
ClickKey KDown
ClickKey KDown
ClickKey KDown
ClickKey KDown
ClickKey KDown
ClickKey KDown
CompareVisual Text1
ClickKey KEndData
CompareVisual Text1
# E)
Exit
|