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 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259
|
/* $XConsortium: PopupMenu7.dat /main/4 1995/07/17 10:17:00 drk $ */
/*
* 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
*/
#) You should see a DrawingArea with a TextField child.
C)
#) Testing XmNpopupEnabled resource set to XmPOPUP_AUTOMATIC.
#) Press BSelect in the TextField. It will now have focus.
#) Press the KMenu button.
#) You should see a Popup Menu in the upper Left hand corner
of the DrawingArea.
#) Press KMenu again and the Popup should disappear.
#) Now press BMenu (usually mouse button 3.)
#) Nothing should happen.
#) Finally move the pointer to the DrawingArea area and press
BMenu.
#) The Popup Menu should show up again.
#) Press BMenu again in the DrawingArea area to make the Popup
disappear.
C)
#) Testing XmNpopupEnabled resource set to XmPOPUP_AUTOMATIC_RECURSIVE.
#) BSelect the TextField again.
#) Now use the BMenu button.
#) The Popup Menu should appear.
#) Press BMenu again to make it disappear.
C)
#) Testing XmNpopupEnabled resource set to XmPOPUP_DISABLED.
#) Press BMenu in the DrawingArea area. Nothing should happen.
#) Press KMenu while the cursor is still in the DrawingArea area.
Again nothing should happen.
#) Press BMenu in the TextField area. Nothing should happen.
#) Lastly, press KMenu while in the TextField area. Again,
nothing should happen.
C)
#) Testing XmNpopupEnabled resource set to XmPOPUP_KEYBOARD.
#) Click BMenu in the DrawingArea. Nothing should happen.
#) Press KMenu. You should see the Popup. Press KMenu again.
#) Press BMenu in the TextField. Nothing should happen.
#) Press KMenu in the TextField. You should see the Popup.
C)
#) This set of instructions exercizes the XmNpopupHandlerCallback
resource while XmNpopupEnabled resource set to XmPOPUP_AUTOMATIC.
#) BSelect the TextField.
#) Now press KMenu. You should see a message printed to stdout.
#) Press BMenu. You should see more messages printed to stdout.
#) Try the same thing on the DrawArea.
C)
#) This set of instructions exercizes the XmNpopupHandlerCallback
resource while XmNpopupEnabled resource set to
XmPOPUP_AUTOMATIC_RECURSIVE.
#) Again press KMenu, BMenu over the DrawArea and TextField.
#) You will see messages being printed out.
C)
#) This set of instructions exercizes the XmNpopupHandlerCallback
resource while XmNpopupEnabled resource set to XmPOPUP_DISABLED.
#) Again press KMenu, BMenu over the DrawArea and TextField.
#) You will see messages being printed out.
C)
#) This set of instructions exercizes the XmNpopupHandlerCallback
resource while XmNpopupEnabled resource set to XmPOPUP_KEYBOARD.
#) Again press KMenu, BMenu over the DrawArea and TextField.
#) You will see messages being printed out.
C)
#) The following instruction panels test CUA menu enhancements.
XmNpopupEnabled resource set to POPUP_AUTOMATIC.
#) Click BMenu over the Drawing Area. You should see the Popup. A
message will appear in stdout "DrawArea Posting Popup."
#) Now click BMenu over the TextField. A different Popup should be
visible. The Drawing Area's Popup should have disappeared. The
message in stdout is "TextField Posting Popup."
#) Now click BMenu over the Drawing Area again. You should see the
first Popup and the Text Field's popup should have disappeared.
The Drawing Area message will again be sent to stdout.
#) Click BMenu again over the Drawing Area. No Popup should be
visible. The message in stdout will say "DrawArea Unposting Popup."
#) Click BMenu over the Text Field. You should see its Popup.
Then, click BMenu again. No Popup should be visible. The posting
and unposting messages for Text Field appear in stdout.
#) Click BMenu over the Drawing Area. Then move over to the root
window and click BMenu. No Popup should be visible. Only the
Drawing Area posting message should appear in stdout.
#) Click BMenu over the Drawing Area. The Drawing Area posting
message should appear in stdout. Move the pointer on top of
the Popup menu. Click BMenu. The Popup will disappear, but no
message will be sent to stdout.
#) Click KMenu over the Drawing Area. The Text Field posting
message should appear in stdout. Move the pointer on top of
the Drawing Area. Click KMenu again. The Popup will disappear,
and an unposting message will appear in stdout.
#) Click KMenu over the Drawing Area. The Text Field posting
message should appear in stdout. Move the pointer to the root
window. Click KMenu again. The Popup will disappear, but
no message will be sent to stdout.
C)
#) XmNpopupEnabled is now set to POPUP_AUTOMATIC_RECURSIVE.
#) Click BMenu over the Drawing Area. You should see the Popup. A
message will appear in stdout "DrawArea Posting Popup."
#) Now click BMenu over the TextField. A different Popup should be
visible. The Drawing Area's Popup should have disappeared. The
message in stdout is "TextField Posting Popup."
#) Now click BMenu over the Drawing Area again. You should see the
first Popup and the Text Field's popup should have disappeared.
The Drawing Area message will again be sent to stdout.
#) Click BMenu again over the Drawing Area. No Popup should be
visible. The message in stdout will say "DrawArea Unposting Popup."
#) Click BMenu over the Text Field. You should see its Popup.
Then, click BMenu again. No Popup should be visible. The posting
and unposting messages for Text Field appear in stdout.
#) Click BMenu over the Drawing Area. Then move over to the root
window and click BMenu. No Popup should be visible. Only the
Drawing Area posting message should appear in stdout.
#) Click BMenu over the Drawing Area. The Drawing Area posting
message should appear in stdout. Move the pointer on top of
the Popup menu. Click BMenu. The Popup will disappear, but no
message will be sent to stdout.
#) Click KMenu over the Drawing Area. The Text Field posting
message should appear in stdout. Move the pointer on top of
the Drawing Area. Click Kmenu again. The Popup will disappear,
and an unposting message will appear in stdout.
#) Click KMenu over the Drawing Area. The Text Field posting
message should appear in stdout. Move the pointer to the root
window. Click KMenu again. The Popup will disappear, but
no message will be sent to stdout.
C)
#) XmNpopupEnabled is now set to POPUP_DISABLED.
#) Click BMenu over the Drawing Area. You should see the Drawing
Area Popup.
#) Now click again BMenu over the Drawing Area. Now, the Popup
will unpost and then repost.
#) Click BMenu over the Text Field. You should see the Text
Field Popup.
#) Now click again BMenu over the Text Field. The Popup will
unpost and then repost.
#) Repeat steps 2-5 using KMenu instead. No menus should
popup in any case. No messages should appear in stdout.
C)
#) XmNpopupEnabled is now set to POPUP_KEYBOARD.
#) Click BMenu over the Drawing Area. You should see the Drawing
Area Popup.
#) Now click again BMenu over the Drawing Area. Now, the Popup
will unpost and then repost.
#) Click BMenu over the Text Field. You should see the Text
Field Popup.
#) Now click again BMenu over the Text Field. The Popup will
unpost and then repost.
#) Click KMenu over the Drawing Area. The Text Field Popup will
appear. Move the pointer over the Drawing Area and click KMenu
again. The Popup will disappear.
E)
|