# $XConsortium: OptionMenu1.scr /main/6 1995/07/17 20:26:51 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 # # 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". CompareVisual optionMenu # 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). LocatePointer optionMenu ROptionButton PressMB Btn3 CompareVisual PullDown1 # Drag the pointer up to "PushButton1". "PushButton1" will appear raised. LocatePointer PushBtn1 CompareVisual PushBtn1 # Drag the pointer to the right off of the Menu. "PushButton1" will appear # flat. LocatePointer PushBtn1 Off CompareVisual PushBtn1 # Drag the pointer back into "PushButton1" and release MB3. "Menu1" will # disappear and "PushButton1" will appear in the Selection Area. LocatePointer PushBtn1 ReleaseMB Btn3 CompareVisual optionMenu Continue # Press and hold MB3 on the Selection Area (PushButton1). The menu will # appear. LocatePointer optionMenu ROptionButton PressMB Btn3 # Release MB3 on "PushButton1". The PulldownMenu will disappear. LocatePointer PushBtn1 ReleaseMB Btn3 # Post the OptionMenu and tear off the OptionMenu using any method. The # OptionMenu should tear off. LocatePointer optionMenu ROptionButton PressMB Btn3 LocatePointer PullDown1 RTearOffButton ReleaseMB Btn3 WindowMove PullDown1 300 300 LocatePointer PushBtn1 ClickMB Btn1 CompareVisual PushBtn1 CompareVisual PullDown1 ClickKey KCancel Continue # With the pointer in the client window, press and the 'o' key. The # PulldownMenu will appear and "PushButton1" will be raised. LocatePointer optionMenu ROptionButton ClickKey Ko CompareVisual PullDown1 # Press the down arrow key four times. "PushButton5" will appear raised. ClickKey KDown ClickKey KDown ClickKey KDown ClickKey KDown CompareVisual PullDown1 # Press the return key. The PulldownMenu will disappear and "PushButton5" # will appear in the Selection Area. ClickKey KReturn # Press MB3 to popup the menu again. The menu will appear to the right of # the Selection Area. LocatePointer optionMenu ROptionButton PressMB Btn3 CompareVisual PullDown1 ReleaseMB Btn3 Continue # With the pointer in the client window, press and the 'o' key. The # PulldownMenu will appear. LocatePointer optionMenu ROptionButton ClickKey Ko # Press the 'o' key. The PulldownMenu will disappear and "PushButton4" will # be in the Selection Area. ClickKey Ko CompareVisual optionMenu # Press the key sequence (Ctrl-P) that appears next to "PushButton2". # The label in the Selection Area will change to "PushButton2". ClickKey Kp CompareVisual optionMenu Continue # 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. LocatePointer optionMenu ROptionButton ClickKey Ko CompareVisual PullDown1 # 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. ClickKey Ks CompareVisual optionMenu Continue # Popup the option menu, and it is now 2 dimensional. Select any item. # The width of the option button should not change. LocatePointer optionMenu ROptionButton PressMB Btn3 LocatePointer PushBtn3 ReleaseMB Btn3 Continue # Popup the option menu, and it is now vertical. Select any item. # The item should appear in the selected area. LocatePointer optionMenu ROptionButton PressMB Btn3 CompareVisual PullDown1 ReleaseMB Btn3 Continue # /* Begin CR 5598 */ # The OptionMenu and the selected area should shrink. Popup the # option menu. It should have shrunk as well. # # /* End CR 5598 */ CompareVisual optionMenu LocatePointer optionMenu ROptionButton PressMB Btn3 CompareVisual PullDown1 ReleaseMB Btn3 Continue Exit