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
|
/*
* 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: PanedWin12.dat /main/4 1995/07/13 19:06:26 drk $"
*/
#) A client with a Paned Window with ten pushbuttons will appear.
Each pane should be the same size. Each button will have a label
consisting of PB plus two numbers separated by a colon. The first
number indicates the order in which the buttons were created. The
second number represents the value used to sort the buttons. The buttons
should be sorted from top to bottom in descending order.
C)
#) A panedwindow with 4 push buttons should appear, PB1, PB2, PB3 and PB4.
C)
#) PB4 should have moved to before PB1.
#) The Xterm window should show that XtGetValues of PB4 returns a value of 0.
C)
#) PB3 should have moved to after PB4 and before PB2.
#) The Xterm window should show that XtGetValues of PB3 returns a value of 1.
C)
#) A new push button, PB5, should have been added to the end.
#) The Xterm window should show that XtGetValues of PB5 returns a value of 4.
C)
#) The fifth button has had its position set to 7, an invalid value.
No core dumps or change should have occurred.
#) The Xterm window should show that XtGetValues of PB5 returns a value of 4.
C)
#) PB4 has had its index set to -2. No change should occur.
#) XtGetValues of PB4 should return a value of 0.
C)
E)
|