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
|
/*
* 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: List5.dat /main/5 1995/07/13 18:19:06 drk $"
*/
#) A List contained in a Bulletin Board should appear. The Font should be:
!)
-adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso8859-1
C)
#) The Selection Policy should be Extended Select in Normal Mode
#) Move the mouse into the List and press the <Space Bar>. The Message
\"ExtendedSelection Callback called\" should be printed in the term window.
#) Press the Down Arrow Key. The highlight and the selection highlight should
now be on Item2. The same callback message should be printed in the term
window. Item1 should be deselected.
#) Press <Shift> <Space Bar>, the same callback message should be printed in
the term window.
#) Press <Shift> Down Arrow Key. Item3 should now be selected (along with
Item2). The highlight should be on Item3, and the same callback message
should be printed in the term window.
#) Press <Cntrl> <Shift> Down Arrow Key. Item4 should now be selected
(along with Item2, and Item3). Extended Callback message should be
printed in the term window.
C)
#) Press <Cntrl> \"/\". All items in the list should be selected. The message
\"ExtendedSelection Callback called\" should be printed in the term window.
#) Press <Cntrl> \"\\\". All items in the list should be DeSelected except
for Item4.
#) Press <Return> in the List. The message \"DefaultAction Callback called\"
should be printed in the term window.
#) Press KSelect twice very quickly. The message \"ExtendedSelection Callback
called\" should be printed in the term window. No
\"DefaultAction Callback called\" message should appear.
#) Press the <Space Bar>. Item4 should stayed selected and the Extended
Selection callback message should be printed in the term window.
#) Press and hold MB1 on Item4 and move the selection to Item10. Items 4
through 10 should be selected. Before you let go of MB1 press
KCancel. The selection of Item4 through 10 should be deleted
and Item4 should be the only item selected. Release MB1.
C)
#) The List should now have no Items selected. The hightlight should still
be over Item4 but it should now be dashed lines instead of solid. This
signifies that the List is now in Add Mode. SelectionPolicy is still
EXTENDED_SELECT.
#) Press the <Space Bar>. Item4 should now be selected and the message
\"ExtendedSelection Callback called\" should be printed in the term window.
#) Press the Down Arrow Key. The highlight should move to Item5, but Item5
will NOT be selected.
#) Move with the Down Arrow key till you get to Item10.
#) Press <Shift> <Space Bar>. All Items between Item4 and Item10 will
be seleted and the hightlight will remain on Item10. The Extended
Callback message will be printed in the term window.
#) Move the highlight with the UP Arrow key until you reach Item1. Press
the <Space Bar>. Item1 should be selected along with the other items
currently selected. The Extended callback message should be printed.
C)
#) Move the highlight with the Down Arrow key until you reach Item10. Press
<Shift> Up Arrow. Item1 through Item10 should be selected and the
Extended callback message should be printed in the term window. The
highlight should be on Item9.
#) Press <Cntrl> \"\\\". All items in the list should be DeSelected.
#) Press <Cntrl> \"/\". All items in the list should be selected. The
EXTENDED callback message will be printed in the term window.
#) Press the <Return> key. The message \"DefaultAction Callback called\"
should be printed in the term window. The selected items should not
change.
C)
#) Press KHelp in the List. The message \"Help Callback called\" should be
printed in the term window.
C)
#) A PushButton labeled CancelButton will appear to the right of the List.
This is defined as the cancel button of the Bulletin Board.
#) Click MB1 on the first item in the List.
#) Press MB1 on the first List item. Drag to the third list item.
Press KCancel.
#) The selection in the List should be canceled. The CancelButton should
not activate. Release MB1.
C)
#) The PushButton should now be labeled \"Set Insensitive\".
#) Click MB1 on the PushButton. The PushButton and the List should be set
insensitive, there should be no highlight in the List.
C)
#) The List should shift downward to (0, 250).
#) Double click on Item1. An Information Dialog should appear.
The Information dialog will be XmDIALOG_FULL_APPLICATION_MODAL.
#) Move the pointer the above the list. The list should not scroll.
#) Move the pointer below the list. The list should not scroll.
#) Repeat two previous step a coulple of times.
#) Move the pointer to the Information Dialog and click on the OK
button. The dialog should be unmanaged and pop down.
E)
|