/* * @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: MenuBar1.dat /main/6 1995/07/13 18:46:54 drk $" */ #) A client window will appear containing a menubar widget with four children. \"NewMenu\" should have the first 'e' underlined. The MenuBar's menuAccelerator will be \"F9\". A Message to this effect will be printed in the term window. #) Move the pointer into the client window. #) Click and hold down MB1 on \"NewMenu\". Note that this button has no pulldown menu associated with it. Release MB1. #) Click and hold down MB1 on \"Menu1\". A pulldown menu with four pushbutton widgets will appear. #) Slide the pointer to the pushbutton \"Toggle MenuShell\" and release MB1 (thus selecting \"Toggle MenuShell\"). #) Select \"Toggle RowColumn\" in \"Menu1\" by pressing the key combination Ctrl-R indicated to the right of the label. #) Click MB1 on \"NewMenu\". A pulldown menu with a label widget and a separator gadget will appear. Unpost the menu. #) Press Ctrl-R several times. After each time, verify that the pulldown menu appears and then disappears. At no time should the pulldown menu post in the top left corner of the display. C) #) Move the pointer into the client window. #) Select \"Toggle CascadeButton\" in \"Menu1\" by pressing the key combination Ctrl-C indicated to the right of the label. #) Click MB1 on \"New Menu\". The pulldown menu now contains a pushbutton widget labeled \"New CascadeButton\". Unpost the menu. #) Select \"Toggle CascadeButtonGadget\" in \"Menu1\" by pressing the key combination Ctrl-G indicated to the right of the label. #) Click MB1 on \"New Menu\". The pulldown menu now contains a pushbutton widget labeled \"New CascadeButtonGadget\". Unpost the menu. #) Select \"Toggle CascadeButton\" in \"Menu1\" with MB1. #) Click MB1 on \"New Menu\". The pulldown menu no longer contains a pushbutton widget labeled \"New CascadeButton\". Unpost the menu. C) #) Move the pointer into the client window. #) Select \"Toggle MenuShell\" in \"Menu1\" with MB1. #) Click and hold down MB1 on \"NewMenu\". No pulldown menu will appear. Release MB1 #) Select \"Toggle RowColumn\" in \"Menu1\" with MB1. #) Click MB1 on \"NewMenu\". A pulldown menu with a label widget and a separator gadget will appear. Unpost the menu. #) Select \"Toggle RowColumn\" in \"Menu1\" with MB1. #) Click and hold down MB1 on \"NewMenu\". No pulldown menu will appear. Release MB1. C) #) Move the pointer into the client window. #) Click and hold down MB1 in \"Menu2\". A pulldown menu with three children will appear. #) Slide the pointer down to \"More2\". An arrow will appear to the right of the button label, and a submenu containing three button widgets will appear. Release MB1. #) Select \"Move Submenu\" in \"Menu2\" with MB1. #) Click and hold down MB1 in \"Menu2\". Note that there is now an arrow to the right of the button \"More3\", and no arrow next to \"More2\". #) Slide the pointer down to \"More3\". The submenu that was associated with \"More2\" will appear. #) Select \"Move Submenu\" in \"Menu2\" with MB1. #) Click and hold down MB1 in \"Menu2\". Again, the arrow has moved from \"More3\" back to \"More2\". #) Slide the pointer down to \"More2\". The submenu will appear. Unpost the menu. C) #) Move the pointer into the client window. #) Click and hold down MB1 on \"Menu3\". A pulldown menu with a pushbutton widget and a cascade button widget will appear. #) Slide the pointer down to the cascade button \"More\". A submenu with three children will appear. Unpost the menu. #) Select \"Unspecified Pixmap\" in \"Menu3\" with MB1. #) Click and hold down MB1 on \"Menu3\". Note that, in the pulldown menu, there is no longer an arrow next to \"More\". #) Slide the pointer down to the cascade button \"More\". A submenu with three children will still appear. Unpost the menu. C) #) Move the pointer into the client window. #) Select the \"Toggle Menu Label\" button in the \"Menu4\" menu. #) The labels for the thrid and fourth cascade buttons in the menuBar should change to longer labels. If the menubar buttons clip, the test fails. #) Select the \"Toggle Menu Label\" button in the \"LongMenuLabel4\" menu. The menuBar should revert back to its original labels. C) #) The menubar's orientation has been changed to vertical. /* #) Verify that the pulldown menus appear to the side of the cascade buttons which activate them, not below them. */ C) E)