# $TOG: ComboBox3b.scr /main/5 1998/02/05 10:26:48 csn $ # # @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 ComboBox will appear on your screen. It will have the type specified # by the user on the command line. All other values are set by default. # There will be a control panel with which you can set and get various # resources of the ComboBox. # Click MB1 on the downward arrow. A list should pop down containing 10 items, # 6 of which should be visible. # Scroll through the list until you come to the "Wallaby" item. Select it. CompareVisual ComboBox LocatePointer ComboBox RComboBoxDropDownButton ClickMB Btn1 CompareVisual ComboBox LocatePointer List RVertScrollBarDownArrow ClickMB Btn1 4 LocatePointer List RListItem 9 CompareVisual ComboBox ClickMB Btn1 CompareVisual ComboBox Continue # Set the value of the "Highlight Thickness" scale to 50. # Select "Set Highlight Thickness" from the "Set ComboBox Values" menu. # The thickness of the highlighting rectangle around the ComboBox should # be set to 50 pixels. LocatePointer ComboScale0 RScaleSlider DragSliderValue Right 50 LocatePointer ComboCascade1 PressMB Btn1 LocatePointer ComboSetPB0 ReleaseMB Btn1 CompareVisual ComboBox Continue # Set the value of the "Arrow Size" scale to 25. # Select "Set Arrow Size" from the "Set ComboBox Values" menu. # The width of the arrow should be set to 25 pixels. # Set the value of the "Arrow Spacing" scale to 25. # Select "Set Arrow Spacing" from the "Set ComboBox Values" menu. # The space between the Text widget and the arrow should be set to 25 # pixels. LocatePointer ComboScale1 RScaleSlider DragSliderValue Right 25 LocatePointer ComboCascade1 PressMB Btn1 LocatePointer ComboSetPB1 ReleaseMB Btn1 CompareVisual ComboBox LocatePointer ComboScale2 RScaleSlider DragSliderValue Right 25 LocatePointer ComboCascade1 PressMB Btn1 LocatePointer ComboSetPB2 ReleaseMB Btn1 CompareVisual ComboBox Continue # Set the value of the "Margin Width" scale to 50. # Select "Set Margin Width" from the "Set ComboBox Values" menu. # The horizontal spacing between the ComboBox and its children should be set # to 50 pixels. # Set the value of the "Set Margin Height" scale to 50. # Select "Set Margin Height" from the "Set ComboBox Values" menu. # The vertical spacing between the ComboBox and its children should be set # to 50 pixels. LocatePointer ComboScale3 RScaleSlider DragSliderValue Right 50 LocatePointer ComboCascade1 PressMB Btn1 LocatePointer ComboSetPB3 ReleaseMB Btn1 CompareVisual ComboBox LocatePointer ComboScale4 RScaleSlider DragSliderValue Right 50 LocatePointer ComboCascade1 PressMB Btn1 LocatePointer ComboSetPB4 ReleaseMB Btn1 CompareVisual ComboBox Continue # Post the "Set Font" menu. # Select each of the available fonts. # The font in the List should change to the selected font. If # the ComboBox is of type COMBO_BOX or DROP_DOWN_COMBO_BOX, type # in the Text widget. The font should be what was selected. LocatePointer FontCascade1 PressMB Btn1 LocatePointer FontPB0 ReleaseMB Btn1 CompareVisual ComboBox # delete what's in the text widget LocatePointer Text RTextChar Min ClickMB Btn1 ClickMB Btn1 ClickKey KDelete # type in a character InputString "X" CompareVisual ComboBox LocatePointer FontCascade1 PressMB Btn1 LocatePointer FontPB1 ReleaseMB Btn1 CompareVisual ComboBox LocatePointer Text RTextChar Min ClickMB Btn1 ClickMB Btn1 ClickKey KDelete InputString "X" CompareVisual ComboBox LocatePointer FontCascade1 PressMB Btn1 LocatePointer FontPB2 ReleaseMB Btn1 CompareVisual ComboBox LocatePointer Text RTextChar Min ClickMB Btn1 ClickMB Btn1 ClickKey KDelete InputString "X" CompareVisual ComboBox LocatePointer FontCascade1 PressMB Btn1 LocatePointer FontPB3 ReleaseMB Btn1 CompareVisual ComboBox LocatePointer Text RTextChar Min ClickMB Btn1 ClickMB Btn1 ClickKey KDelete InputString "X" CompareVisual ComboBox Continue # Set the value of the "Selected Position" scale to 3. # Select "Set Selected Position" from the "Set ComboBox Values" menu. # The 3rd item of the list should be selected. # There will be a message in the term window indicating the the # selectionCallback has been called. The reason should be XmCR_SELECT. # Click on an item in the list. The selection callback should be invoked. # The name of the item should appear in the Text field. # Clear the Text field and type "Kangaroo". The selectionCallback should # be invoked. LocatePointer ComboScale5 RScaleSlider DragSliderValue Right 3 LocatePointer ComboCascade1 PressMB Btn1 LocatePointer ComboSetPB6 ReleaseMB Btn1 CompareVisual ComboBox LocatePointer List RListItem 2 ClickMB Btn1 CompareVisual ComboBox LocatePointer Text RTextChar Min ClickMB Btn1 ClickMB Btn1 ClickKey KDelete ClickKey KDelete ClickKey KDelete ClickKey KDelete ClickKey KDelete ClickKey KDelete ClickKey KDelete LocatePointer Text ClickMB Btn1 InputString "Kangaroo" CompareVisual ComboBox Continue Exit