/* * @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: OptionMenu1.dat /main/6 1995/07/13 18:48:59 drk $" */ #) A client window containing an OptionMenu will appear. The OptionMenu will have a label named \"Option\" with the 'O' in \"Option\" underlined, and a CascadeButton labeled \"PushButton2\". The Shell will be located 50 pixels from the top left corner of the display. A Message will appear in the term window saying that XmNmnemonicCharSet is \"my_char_set\". All PushButtons in this test will be red in background color. #) Press and hold MB3 on the Selection Area (PushButton2). A PulldownMenu labeled \"Menu1\" will appear. The Option Menu label, button, and all of the menu entries will appear in the same bold, large font (8x13bold). #) Drag the pointer up to \"PushButton1\". \"PushButton1\" will appear raised. #) Drag the pointer to the right off of the Menu. \"PushButton1\" will appear flat. #) Drag the pointer back into \"PushButton1\" and release MB3. \"Menu1\" will disappear and \"PushButton1\" will appear in the Selection Area. #) Post the OptionMenu and tear off the OptionMenu using any method. The OptionMenu should tear off. #) Activate \"PushButton1\" within the tear off menu. #) Delete the torn off menu by clicking KCancel C) #) Press and hold MB3 on the Selection Area (PushButton1). The menu will appear. #) Release MB3 on \"PushButton1\". The PulldownMenu will disappear. C) #) With the pointer in the client window, press and the 'o' key. The PulldownMenu will appear and \"PushButton1\" will be raised. #) Press the down arrow key four times. \"PushButton5\" will appear raised. #) Press the return key. The PulldownMenu will disappear and \"PushButton5\" will appear in the Selection Area. #) Press MB3 to popup the menu again. The menu will appear to the right of the Selection Area. C) #) With the pointer in the client window, press and the 'o' key. The PulldownMenu will appear. #) Press the 'o' key. The PulldownMenu will disappear and \"PushButton4\" will be in the Selection Area. #) Press the key sequence (Ctrl-P) that appears next to \"PushButton2\". The label in the Selection Area will change to \"PushButton2\". C) #) With the pointer in the client window, press and the 'o' key. The PulldownMenu will appear. The last entry in the PulldownMenu will be a PushButton labelled \"PushButton6\" with several asterisks before and after the visible characters in the label. #) Press the 's' key. The PulldownMenu will disappear and \"PushButton6\" will be in the Selection Area. The Selection Area label will display the label \"PushButton6\" with several asterisks before and after the visible part of the label. C) #) Popup the option menu, and it is now 2 dimensional. Select any item. The width of the option button should not change. C) #) Popup the option menu, and it is now vertical. Select any item. The item should appear in the selected area. C) /* Begin CR 5598 */ #) The OptionMenu and the selected area should shrink. Popup the option menu. It should have shrunk as well. /* End CR 5598 */ C) #) The OptionMenu's subMenuID has just been set to NULL. You should not get a core dump. E)