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
|
/* $XConsortium: SelectBox1a.dat /main/4 1995/07/17 10:21:39 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\".
C)
#) 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:\".
#) 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:\".
#) 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:\".
#) Click MB1 on the \"OK\" button. \"ok: decor07\" should appear in
the xterm window.
C)
#) Move the client window. Iconify the client window. Normalize
the client window. Resize the client window.
#) 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.
#) 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.
C)
#) 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.
#) 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.
#) Click MB1 on the \"Apply\" button. \"apply: parse03\" should
appear in the xterm window.
#) Click MB1 on the \"Cancel\" button. \"cancel: parse03\" should
appear in the xterm window.
#) Click MB1 on the \"Help\" button.
C)
#) 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.
#) 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.
C)
#) 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.
#) Try setting the width larger and smaller, pressing OK to actually
apply the change.
#) Now set the number of columns larger and smaller.
C)
#) The text area of the selection box has been unmanaged.
#) Try changing width and textColumns again.
#) 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.
E)
|