Blob Blame History Raw
# $XConsortium: OptionMenu4.scr /main/5 1995/07/17 20:27:09 drk $
# 
# Motif
#
# Copyright (c) 1987-2012, The Open Group. All rights reserved.
#
# These libraries and programs are free software; you can
# redistribute them and/or modify them under the terms of the GNU
# Lesser General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# These libraries and programs are distributed in the hope that
# they will be useful, but WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with these librararies and programs; if not, write
# to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
# Floor, Boston, MA 02110-1301 USA
# 
# 
# HISTORY
# 


# A client window containing a Form widget with nine OptionMenu
#  children will appear.  The window will be located 350 pixels down
#  from the top left corner of the display.  Click on the buttons
#  labeled 'Himalayan', 'Siamese', and 'Exotic Shorthair' and
#  you'll see the same (shared) menu pane.
#     Note: there should be no warning messages in the xterm window. 

WindowRaise Shell1

CompareVisual RC

LocatePointer OptionMenu0 ROptionButton
PressMB Btn1
LocatePointer PushBtn3
ReleaseMB Btn1

LocatePointer OptionMenu1 ROptionButton
PressMB Btn1
LocatePointer PushBtn3
ReleaseMB Btn1

LocatePointer OptionMenu5 ROptionButton
PressMB Btn1
LocatePointer PushBtn3
ReleaseMB Btn1

# Move the pointer into the client window.  Traverse from button to
#  button using the down arrow key.  The focus should move through
#  the buttons in the following order:
#     Himalayan, Siamese, Domestic Shorthair
#     Maine Coon Cat, Burmese
#     Exotic Shorthair, Turkish Van, Persian, 
#     Russian Blue. 

LocatePointer OptionMenu0 ROptionButton
PressMB Btn1
ReleaseMB Btn1

ClickKey KDown
CompareVisual RC
ClickKey KDown
CompareVisual RC
ClickKey KDown
CompareVisual RC
ClickKey KDown
CompareVisual RC
ClickKey KDown
CompareVisual RC
ClickKey KDown
CompareVisual RC
ClickKey KDown
CompareVisual RC
ClickKey KDown
CompareVisual RC
Continue


# The client window will now contain 3 OptionMenu children.
#  The three OptionMenu children share the same PulldownMenu.  OptionMenu1
#  sets XmNmenuHistory to Button1, OptionMenu2 sets XmNmenuHistory to
#  Button2, and OptionMenu3 sets XmNmenuHistory to Button3. 
#  Verify the defaults are set correctly. 

CompareVisual RC2
Continue

# The client window will now contain one OptionMenu child.  The
#  selection area should be initialized to A Long Item. 

# Verify that the OptionMenu indicator (a little rectangular button) appears
#  to the right of the A Long Item label. 

CompareVisual RC3
Continue

# The client window will now be empty.  A menu shell will
#  appear that contains one OptionMenu child. 

# The Button Label should read: Button Label:
#  The contents of the OptionMenu should read: new long Text.  

CompareVisual mb1

Exit