/* * @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 */ /* static char rcsid[] = "$XConsortium: PopupMenu6.dat /main/6 1995/07/13 18:53:46 drk $" */ #) /* Pause 1 */ #) This test has a popupMenu created as a child of a RowColumn. WhichBtn is 3, an event handler has been set for the RowColumn. Btn3 should post the menu within all widgets, Btn1 and Btn2 should not. Make sure the menu posts on a rapid click of MB3. C) #) /* Pause 2, PIR 2967, PIR 3435 */ #) Note that no warnings should appear in the term window. #) This test has a popupMenu created as a child of a RowColumn. MenuPost is 3, an event handler has been set for the RowColumn. Btn3 should post the menu within all widgets, Btn1 and Btn2 should not. No hangs should occur. #) Note that a rapid click of MB3 should cause the popupMenu to stay posted. Try clicking MB3 within the context of the label and other child widgets. The popup should stay posted. Now try clicking in the edge of the window. The popup should stay posted. C) #) /* Pause 3 */ #) This test has a popupMenu created as a child of a RowColumn. MenuPost is 3, an event handler has been set for the RowColumn. Btn3 should post the menu, Btn1 and Btn2 should not. No hangs should occur. C) #) /* Pause 4 */ #) A drawing area will appear with a drawing area child and a push button child. A popupmenu has been created as a child of the parent drawingArea and is registered to popup for the drawing area child and parent. A separate popupmenu has been created as a child of the pushbutton. XmNmenuPost is "" for both popup menus. #) MB3 should post the menu with entries DrawChildx within the two drawing areas; however, MB3 within the pushButton "MB3 to Popup" should post a popupMenu with entries PushChildx. C) #) /* Pause 5 */ #) A drawing area will appear with a drawing area child and a push button child. A popupmenu has been created as a child of the parent drawingArea and is registered to popup for the drawing area child and parent. A separate popupmenu has been created as a child of the pushbutton. XmNmenuPost is "" for the pushbutton popupMenu and "" for the drawingArea popupMenu. #) MB3 should post the DrawChild popupMenu within the context of the drawing areas (but not the pushButton). #) MB3 should post the PushChild popupMenu only from within the context of the PushButton. C) #) /* Pause 6 */ #) A drawing area will appear with a drawing area child and a push button child. Three popup menus have been created as children of the 3 widgets. Pressing MB3 in the parent drawing area should post the parent's popup, pressing MB3 in the child drawing area should post the child's and pressing MB3 in the pushbutton should post the push button popup menu. (Note: you may need to resize the window to see all children) C) /* Pause 7 */ E)