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
|
/*
* 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: Menu3.dat /main/6 1995/07/13 18:44:59 drk $"
*/
#) A client window will appear with a menubar widget and a row
column widget containing six pushbuttons.
#) Give focus to the client window.
#) Click and hold down MB1 on \"pdbtn2\" in the menubar. A pulldown
widget with six option buttons will appear. Slide the pointer
down to any of these options and release MB1.
#) Again, click and hold down MB1 on \"pdbtn2\". Note that the
cursor has changed to a pixmap corresponding to the option button
you selected. A filled box will appear next to the option button
you selected.
#) Repeat the above to view all of the different cursor pixmaps.
C)
#) Give focus to the client window.
#) Click and hold down MB1 on \"pdbtn1\" in the menubar. A pulldown
menu with three option buttons and two cascade buttons will
appear.
#) Drag the pointer to \"option3a\" a message should be printed in the term
window that the armCallback is called.
#) Move past the \"option3a\", a message should be printed in the term window
window that the disarmCallback is called.
#) Unpost the Menu, and then repost via F10 and the down arrow key.
#) Move with the arrow keys until you are over \"option3a\", again the armCallback
message should be printed in the term window.
#) Move off of \"option3a\", a disarm message should be printed in the term
window.
#) Try the same steps again, this time posting menu via F10 and the
down arrow key and then use MB1 to click on \"option3a\".
C)
#) Give focus to the client window.
#) Click and hold down MB1 on \"pdbtn1\" in the menubar. A pulldown
menu with three option buttons and two cascade buttons will
appear.
#) Slide the pointer down to the cascade button labeled \"more\".
Another pulldown menu with three option buttons will appear.
#) Slide the pointer down to the cascade button labeled \"more2\".
A pulldown menu with two option buttons and a button with a
pixmap label (a face) will appear.
#) Slide the pointer up above \"pdbtn1\" and release MB1. The
pulldown menu will disappear.
#) Select \"button1\" with MB1. The button will be set insensitive.
#) Click and hold down MB1 on \"pdbtn1\" in the menubar. Note that
the button labeled \"more2\" no longer has an arrow next to its
label, nor a pulldown menu associated with it.
C)
#) Give focus to the client window.
#) Select \"button2\" with MB1. The button will be set insensitive.
#) Click and hold down MB1 on \"pdbtn1\" in the menubar. Note that
there is no longer an option button labeled \"option1a\" in the
pulldown menu.
#) Select the \"help\" button in the menubar. A message indicating
that help was activated will be printed to the xterm window.
#) Select \"button3\" with MB1. The button will be set insensitive.
The \"help\" button in the menubar will disappear.
C)
#) Make sure the focus is in the Row Column portion of the window.
#) Type the Ctrl g key. Nothing will happen.
#) Type the Ctrl h key. A popup menu with three option buttons will
appear.
#) Move the pointer into the popup menu and click MB3. The popup
menu will disappear. A message indicating which option button was
selected will be printed to the xterm window.
#) Select \"button4\" with MB1.
#) Type the Ctrl g key. The popupmenu will appear. Click MB3 to
rid of the popup menu.
#) Type the Ctrl h key. Nothing will happen.
C)
#) Give focus to the client window.
#) Click and hold down MB1 on \"pdbtn3\" in the menubar. Nothing
will happen.
#) Select \"button5\" with MB1. The button will be set insensitive.
#) Click and hold down MB1 on \"pdbtn1\" in the menubar. Nothing
will happen.
#) Click and hold down MB1 on \"pdbtn3\" in the menubar. The
pulldown menu that was associated with \"pdbtn1\" will appear.
#) Select \"button6\" with MB1. Click and hold down MB1 on
\"pdbtn2\" in the menubar. The option button \"heart\" will be
set insensitive.
C)
E)
|