/* * @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: 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)