/* $XConsortium: PopupMenu7.dat /main/4 1995/07/17 10:17:00 drk $ */ /* * @OPENGROUP_COPYRIGHT@ * COPYRIGHT NOTICE * Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc. * Copyright (c) 1996, 1997, 1998, 1999, 2000 The Open Group * ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for * the full copyright text. * * This software is subject to an open license. It may only be * used on, with or for operating systems which are themselves open * source systems. You must contact The Open Group for a license * allowing distribution and sublicensing of this software on, with, * or for operating systems which are not Open Source programs. * * See http://www.opengroup.org/openmotif/license for full * details of the license agreement. Any use, reproduction, or * distribution of the program constitutes recipient's acceptance of * this agreement. * * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS * PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY * WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY * OR FITNESS FOR A PARTICULAR PURPOSE * * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT * NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE * EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* * 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)