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
|
/*
* 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: List4.dat /main/5 1995/07/13 18:18:24 drk $"
*/
#) A client with three lists, two push buttons, and a scale should appear.
The lists will be positioned in the top row and should be labeled
Functions:, List1:, and List2:. Funtions will contain two items
(XmListReplaceItems() and XmReplaceItemsPos()). List1 will contain
five items (Item1 - Item5). List2 will contain four items (Item6 - Item9).
#) Select XmListReplaceItems() from the Functions List.
#) Select Item1 and Item3 from List1, and then select Item7 and Item9
from List2.
#) Click MB1 in the Call Function push button. List1 should now contain Item7
and Item9 where Item1 and Item3 where before.
C)
#) Click MB1 in the Clear Args push button.
#) Select XmListReplaceItems() from the Functions List.
#) Select Item4 from List1, and then select Item6, Item7, and Item8,
and Item9 from List2.
#) Click MB1 in the Call Function push button. Item4 in List1 will replaced
by Item6 from List2.
C)
#) Click MB1 in the Clear Args push button.
#) Select XmListReplaceItemPos() from the Functions List.
#) Select Item6, Item7, and Item8 from List2.
#) Move the slider on the scale until it reads 2.
#) Click MB1 in the Call Function pushbutton. Item6, Item7, and Item8
should replace Item2, Item9, and Item6 in List1.
C)
#) Click MB1 in the Clear Args push button.
#) Select XmListReplaceItemPos() from the Functions List.
#) Select Item6, Item7, Item8, and Item9 from List2.
#) Move the slider on the scale till the scale reads 0.
#) Click MB1 in the Call Function pushbutton. No change should be visible.
E)
|