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 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313
|
# $XConsortium: SelectBox1a.scr /main/4 1995/07/17 20:38:17 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 client with a SelectionBox will appear; the dialogTitle should
# be MyDialogTitle. The SelectionBox should consist of the following items:
# !)
# a) a list, labeled \"Pick a Test\", with twenty
# items visible; the label should be aligned to
# the right.
# b) a scrollbar to the left of the list,
# c) a selection text widget, labeled \"test:\",
# below the list, and aligned to the right, and
# d) four pushbuttons at the bottom, labeled
# \"Help\", \"Cancel\", \"Apply\", and \"Ok\".
LocatePointer SelectionBox1
CompareVisual SelectionBox1
# C)
Continue
# #) Click MB1 on the item \"decor00\" in the list. The selected item
# should be highlighted, and \"decor00\" should appear in the
# selection text widget \"test:\".
LocatePointer SelectionBox1 RSelectionListItem 18
ClickMB Btn1
CompareVisual SelectionBox1
# #) Click MB1 on the item \"func04\" in the list. The selected item
# should be highlighted, and \"func04\" should appear in the
# selection text widget \"test:\".
LocatePointer SelectionBox1 RSelectionListItem 18
ClickMB Btn1
CompareVisual SelectionBox1
# #) Press and hold down MB1 on \"btest3\" in the list. \"btest3
# should be highlighted. Drag the pointer down to \"decor07\".
# The item under the pointer should always be highlighted. Release
# MB1. \"decor07\" should appear in the selection text widget \"test:\".
LocatePointer SelectionBox1 RSelectionListItem 3
DragComponent SelectionBox1 RSelectionListItem 11
# #) Click MB1 on the \"OK\" button. \"ok: decor07\" should appear in
# the xterm window.
LocatePointer SelectionBox1 ROkButton
ClickMB Btn1
# C)
Continue
# #) Move the client window. Iconify the client window. Normalize
# the client window. Resize the client window.
WindowMove SelectionBox1 50 50
WindowIconify Shell1
WindowDeiconify Shell1
# #) Move the pointer into the \"test:\" selection text widget. Press
# the backspace key repeatedly to remove \"decor07\" from the
# \"test:\" selection text widget. Press and hold down MB1 on the
# bottom arrow of the scrollbar. The slider should move down and
# the list should scroll. Release MB1. Press and hold down MB1 on
# the scrollbar slider. Drag the slider to the bottom of the
# scrollbar. The list should scroll. Release MB1.
LocatePointer SelectionBox1 RSelectionText
ClickMB Btn1
ClickKey KBackSpace
ClickKey KBackSpace
ClickKey KBackSpace
ClickKey KBackSpace
ClickKey KBackSpace
ClickKey KBackSpace
ClickKey KBackSpace
LocatePointer SelectionBox1 RSelectListVertScrollBarDownArrow
ClickMB Btn1
ClickMB Btn1
ClickMB Btn1
ClickMB Btn1
LocatePointer SelectionBox1 RSelectListVertScrollBarSlider
DragSliderValue Down Max
CompareVisual SelectionBox1
# #) Move the pointer into the \"test:\" selection text widget. Type
# \"pitest1\". Click MB1 on the \"OK\" button. \"ok: pitest1
# should appear in the xterm window. Double click MB1 on \"parse00\"
# in the list. \"parse00\" should be highlighted, and \"parse00\"
# should appear in the \"test:\" selection text widget. \"ok: parse00\"
# should also appear in the xterm window.
LocatePointer SelectionBox1 RSelectionText
ClickMB Btn1
InputString "pitest1"
LocatePointer SelectionBox1 ROkButton
ClickMB Btn1
CompareVisual SelectionBox1
LocatePointer SelectionBox1 RSelectionListItem 8
ClickMB Btn1 2
CompareVisual SelectionBox1
# C)
Continue
# #) Move the pointer into the client window. Press the backspace key
# once. Type \"3\". Press the return key. \"ok: parse03\" should
# appear in the xterm window.
LocatePointer SelectionBox1 RSelectionText
ClickMB Btn1
ClickKey KBackSpace
ClickKey K3
ClickKey KReturn
CompareVisual SelectionBox1
# #) Press and hold down MB1 on the \"OK\" button. The button should
# appear pressed in. Drag the pointer off of the \"OK\" button.
# The button should appear popped out. Release MB1.
LocatePointer SelectionBox1 ROkButton
PressMB Btn1
LocatePointer SelectionBox1 Off
ReleaseMB Btn1
CompareVisual SelectionBox1
# #) Click MB1 on the \"Apply\" button. \"apply: parse03\" should
# appear in the xterm window.
LocatePointer SelectionBox1 RApplyButton
ClickMB Btn1
CompareVisual SelectionBox1
# #) Click MB1 on the \"Cancel\" button. \"cancel: parse03\" should
# appear in the xterm window.
LocatePointer SelectionBox1 RCancelButton
ClickMB Btn1
CompareVisual SelectionBox1
# #) Click MB1 on the \"Help\" button.
LocatePointer SelectionBox1 RHelpButton
ClickMB Btn1
CompareVisual SelectionBox1
# C)
Continue
# #) Move the pointer into the \"test:\" selection text widget. Press
# the backspace key twice. Type \"25\". Click MB1 on the \"OK
# button. \"noMatch: parse25\" should appear in the xterm window.
LocatePointer SelectionBox1 RSelectionText
ClickMB Btn1
ClickKey KBackSpace
ClickKey KBackSpace
ClickKey K2
ClickKey K5
LocatePointer SelectionBox1 ROkButton
ClickMB Btn1
CompareVisual SelectionBox1
# #) Move pointer out of the client window. Press and hold down MB1.
# Move pointer back into the client window. Move the pointer out
# of the client window. Release MB1.
LocatePointer SelectionBox1 Off
PressMB Btn1
LocatePointer SelectionBox1
LocatePointer SelectionBox1 Off
ReleaseMB Btn1
CompareVisual SelectionBox1
# C)
Continue
# #) The InstructionBox's help button will now become sensitive and will
# be labeled \"Measure\".
# #) Press the Measure button. A new dialog appears which allows
# you to examine the relationship between textColumns and width.
# Everytime the dialog pops up, the values displayed
# are the current values for those resources of the SelectionBox.
LocatePointer InstructionBox RHelpButton
ClickMB Btn1
LocatePointer ScaleWidth RScaleSlider
DragSliderValue Right 300
LocatePointer ScaleColumns RScaleSlider
DragSliderValue Right 50
LocatePointer ScaleOK
ClickMB Btn1
CompareVisual SelectionBox1
# #) Try setting the width larger and smaller, pressing OK to actually
# apply the change.
LocatePointer InstructionBox RHelpButton
ClickMB Btn1
LocatePointer ScaleWidth RScaleSlider
DragSliderValue Right 450
LocatePointer ScaleColumns RScaleSlider
DragSliderValue Right 60
LocatePointer ScaleOK
ClickMB Btn1
CompareVisual SelectionBox1
# #) Now set the number of columns larger and smaller.
LocatePointer InstructionBox RHelpButton
ClickMB Btn1
LocatePointer ScaleWidth RScaleSlider
DragSliderValue Left 250
LocatePointer ScaleColumns RScaleSlider
DragSliderValue Left 15
LocatePointer ScaleOK
ClickMB Btn1
CompareVisual SelectionBox1
# C)
Continue
# #) The text area of the selection box has been unmanaged.
CompareVisual SelectionBox1
# #) Try changing width and textColumns again.
LocatePointer InstructionBox RHelpButton
ClickMB Btn1
LocatePointer ScaleWidth RScaleSlider
DragSliderValue Left 200
LocatePointer ScaleColumns RScaleSlider
DragSliderValue Right 50
LocatePointer ScaleOK
ClickMB Btn1
CompareVisual SelectionBox1
# #) If you click on any of the buttons in the SelectionBox, that button will be
# unmanaged. Unmanage each button in turn and observe the
# effect on width and textColumns.
LocatePointer SelectionBox1 ROkButton
ClickMB Btn1
CompareVisual SelectionBox1
LocatePointer SelectionBox1 RCancelButton
ClickMB Btn1
CompareVisual SelectionBox1
LocatePointer SelectionBox1 RApplyButton
ClickMB Btn1
CompareVisual SelectionBox1
LocatePointer SelectionBox1 RHelpButton
ClickMB Btn1
CompareVisual SelectionBox1
# E)
Exit
|