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
|
/*
* 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: List7.dat /main/5 1995/07/13 18:20:30 drk $"
*/
#) A client with two lists, two push buttons, and a scale should appear.
The list on the far left should have a list of function names, and the
list on the far right should have a list of items (1 - 9)
#) Select XmListAddItems() from the Functions list, and then select Item1,
Item2, and Item3 from the Action List.
#) Click MB1 in the Call Function push button. The Action list should
now contain vertical scrollbars, and Item1, Item2, and Item3 should be
appended (selected) the end of the Action List.
C)
#) Click MB1 in the Clear Args push button.
#) Select XmListDeleteItems() from the Functions list, and then
select Item4, Item5, and Item6 from the Action List.
#) Click MB1 in the Call Funtion push button. Item4, Item5, and Item6
should be deleted from the Action List, and the vertical scrollbar
should disappear.
#) Click MB1 in the Call Function push button again. Three warning messages
should be printed in the term window.
C)
#) Click MB1 in the Clear Args push button.
#) Select XmListDeleteItemsPos() from the Functions List, and then select
Item1 from the Action List.
#) Move the slider on the scale till the scale reads 2.
#) Click MB1 in the Call Function push button. Item1 and Item2 should be
deleted from the Action List.
#) Click MB1 in the last item in the Action List (Item3).
#) Click MB1 in the Call Funtion push button. The last item (Item3) should
be deleted from the list.
#) Click MB1 in the Call Funtion push button again. A warning message
should be printed in the term window.
#) Move the slider scale to 0.
#) Click MB1 in the Call Function push button. No change will be visible.
C)
#) Click MB1 in the Clear Args push button.
#) Select XmListAddItem() from the Functions List, and then select Item7
from the Action List.
#) Move the Scale slider to 6.
#) Click MB1 in the Call Function push button, Item7 should be added (selected)
in the sixth position in the List.
#) Move the Scale slider to 0.
#) Click MB1 in the Call Funtion push button. Item7 should be added (selected)
to the end of the list.
C)
#) Click MB1 in the Clear Args push button.
#) Select XmListDeleteItem() from the Functions List, and then select
Item9 in the Action List.
#) Click MB1 in the Call Function push button, Item9 should be deleted
from the Action List.
#) Click MB1 in the Call Function push button again. A warning message should
be printed in the term window.
C)
#) Click MB1 in the Clear Args push button.
#) Select XmListDeleteAllItems() from the Functions List.
#) Click MB1 in the Call Function push button, all Items should be
deleted and the List should be empty. The list should not increase in size.
#) Click MB1 in the Call Function push button. There should be no visible
change.
E)
|