|
Packit |
b099d7 |
# $TOG: ComboBox3c.scr /main/5 1998/02/05 10:27:45 csn $
|
|
Packit |
b099d7 |
#
|
|
Packit |
b099d7 |
# Motif
|
|
Packit |
b099d7 |
#
|
|
Packit |
b099d7 |
# Copyright (c) 1987-2012, The Open Group. All rights reserved.
|
|
Packit |
b099d7 |
#
|
|
Packit |
b099d7 |
# These libraries and programs are free software; you can
|
|
Packit |
b099d7 |
# redistribute them and/or modify them under the terms of the GNU
|
|
Packit |
b099d7 |
# Lesser General Public License as published by the Free Software
|
|
Packit |
b099d7 |
# Foundation; either version 2 of the License, or (at your option)
|
|
Packit |
b099d7 |
# any later version.
|
|
Packit |
b099d7 |
#
|
|
Packit |
b099d7 |
# These libraries and programs are distributed in the hope that
|
|
Packit |
b099d7 |
# they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
Packit |
b099d7 |
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
Packit |
b099d7 |
# PURPOSE. See the GNU Lesser General Public License for more
|
|
Packit |
b099d7 |
# details.
|
|
Packit |
b099d7 |
#
|
|
Packit |
b099d7 |
# You should have received a copy of the GNU Lesser General Public
|
|
Packit |
b099d7 |
# License along with these librararies and programs; if not, write
|
|
Packit |
b099d7 |
# to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
Packit |
b099d7 |
# Floor, Boston, MA 02110-1301 USA
|
|
Packit |
b099d7 |
#
|
|
Packit |
b099d7 |
#
|
|
Packit |
b099d7 |
# HISTORY
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
# A DROP_DOWN_LIST ComboBox will appear on your screen along with a
|
|
Packit |
b099d7 |
# control panel with which you can set and get various resources of
|
|
Packit |
b099d7 |
# the ComboBox.
|
|
Packit |
b099d7 |
# Click MB1 on the downward pointing arrow of the ComboBox widget
|
|
Packit |
b099d7 |
# to post the drop down List.
|
|
Packit |
b099d7 |
# The list should contain 10 items. Six items should be visible.
|
|
Packit |
b099d7 |
# Scroll through the list until you come to the "Wallaby" item. Select it.
|
|
Packit |
b099d7 |
# \"Wallaby\" should now be displayed in the ComboBox Text field.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
CompareVisual ComboBox
|
|
Packit |
b099d7 |
LocatePointer ComboBox RComboBoxDropDownButton
|
|
Packit |
b099d7 |
ClickMB Btn1
|
|
Packit |
b099d7 |
CompareVisual ComboBox
|
|
Packit |
b099d7 |
LocatePointer List RVertScrollBarDownArrow
|
|
Packit |
b099d7 |
ClickMB Btn1 4
|
|
Packit |
b099d7 |
CompareVisual ComboBox
|
|
Packit |
b099d7 |
LocatePointer List RListItem 9
|
|
Packit |
b099d7 |
ClickMB Btn1
|
|
Packit |
b099d7 |
CompareVisual ComboBox
|
|
Packit |
b099d7 |
Continue
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
# Set the value of the "Highlight Thickness" scale to 50.
|
|
Packit |
b099d7 |
# Select "Set Highlight Thickness" from the "Set ComboBox Values" menu.
|
|
Packit |
b099d7 |
# The thickness of the highlighting rectangle around the ComboBox should
|
|
Packit |
b099d7 |
# be set to 50 pixels.
|
|
Packit |
b099d7 |
#
|
|
Packit |
b099d7 |
LocatePointer ComboScale0 RScaleSlider
|
|
Packit |
b099d7 |
DragSliderValue Right 50
|
|
Packit |
b099d7 |
LocatePointer ComboCascade1
|
|
Packit |
b099d7 |
PressMB Btn1
|
|
Packit |
b099d7 |
LocatePointer ComboSetPB0
|
|
Packit |
b099d7 |
ReleaseMB Btn1
|
|
Packit |
b099d7 |
LocatePointer ComboBox
|
|
Packit |
b099d7 |
CompareVisual ComboBox
|
|
Packit |
b099d7 |
Continue
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
# Set the value of the "Arrow Size" scale to 25.
|
|
Packit |
b099d7 |
# Select "Set Arrow Size" from the "Set ComboBox Values" menu.
|
|
Packit |
b099d7 |
# The width of the arrow should be set to 25 pixels.
|
|
Packit |
b099d7 |
# Set the value of the "Arrow Spacing" scale to 25.
|
|
Packit |
b099d7 |
# Select "Set Arrow Spacing" from the "Set ComboBox Values" menu.
|
|
Packit |
b099d7 |
# The space between the Text widget and the arrow should be set to 25
|
|
Packit |
b099d7 |
# pixels.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer ComboScale1 RScaleSlider
|
|
Packit |
b099d7 |
DragSliderValue Right 25
|
|
Packit |
b099d7 |
LocatePointer ComboCascade1
|
|
Packit |
b099d7 |
PressMB Btn1
|
|
Packit |
b099d7 |
LocatePointer ComboSetPB1
|
|
Packit |
b099d7 |
ReleaseMB Btn1
|
|
Packit |
b099d7 |
CompareVisual ComboBox
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer ComboScale2 RScaleSlider
|
|
Packit |
b099d7 |
DragSliderValue Right 25
|
|
Packit |
b099d7 |
LocatePointer ComboCascade1
|
|
Packit |
b099d7 |
PressMB Btn1
|
|
Packit |
b099d7 |
LocatePointer ComboSetPB2
|
|
Packit |
b099d7 |
ReleaseMB Btn1
|
|
Packit |
b099d7 |
CompareVisual ComboBox
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
Continue
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
# Set the value of the "Margin Width" scale to 50.
|
|
Packit |
b099d7 |
# Select "Set Margin Width" from the "Set ComboBox Values" menu.
|
|
Packit |
b099d7 |
# The horizontal spacing between the ComboBox and its children should be set
|
|
Packit |
b099d7 |
# to 50 pixels.
|
|
Packit |
b099d7 |
# Set the value of the "Set Margin Height" scale to 50.
|
|
Packit |
b099d7 |
# Select "Set Margin Height" from the "Set ComboBox Values" menu.
|
|
Packit |
b099d7 |
# The vertical spacing between the ComboBox and its children should be set
|
|
Packit |
b099d7 |
# to 50 pixels.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer ComboScale3 RScaleSlider
|
|
Packit |
b099d7 |
DragSliderValue Right 50
|
|
Packit |
b099d7 |
LocatePointer ComboCascade1
|
|
Packit |
b099d7 |
PressMB Btn1
|
|
Packit |
b099d7 |
LocatePointer ComboSetPB3
|
|
Packit |
b099d7 |
ReleaseMB Btn1
|
|
Packit |
b099d7 |
CompareVisual ComboBox
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer ComboScale4 RScaleSlider
|
|
Packit |
b099d7 |
DragSliderValue Right 50
|
|
Packit |
b099d7 |
LocatePointer ComboCascade1
|
|
Packit |
b099d7 |
PressMB Btn1
|
|
Packit |
b099d7 |
LocatePointer ComboSetPB4
|
|
Packit |
b099d7 |
ReleaseMB Btn1
|
|
Packit |
b099d7 |
CompareVisual ComboBox
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
Continue
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
# Post the "Set Font" menu.
|
|
Packit |
b099d7 |
# Select each of the available fonts.
|
|
Packit |
b099d7 |
# The font in the List should change to the selected font. If
|
|
Packit |
b099d7 |
# the ComboBox is of type COMBO_BOX or DROP_DOWN_COMBO_BOX, type
|
|
Packit |
b099d7 |
# in the Text widget. The font should be what was selected.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer FontCascade1
|
|
Packit |
b099d7 |
PressMB Btn1
|
|
Packit |
b099d7 |
LocatePointer FontPB0
|
|
Packit |
b099d7 |
ReleaseMB Btn1
|
|
Packit |
b099d7 |
CompareVisual ComboBox
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer ComboBox RComboBoxDropDownButton
|
|
Packit |
b099d7 |
PressMB Btn1
|
|
Packit |
b099d7 |
CompareVisual List
|
|
Packit |
b099d7 |
ReleaseMB Btn1
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer FontCascade1
|
|
Packit |
b099d7 |
PressMB Btn1
|
|
Packit |
b099d7 |
LocatePointer FontPB1
|
|
Packit |
b099d7 |
ReleaseMB Btn1
|
|
Packit |
b099d7 |
CompareVisual ComboBox
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer ComboBox RComboBoxDropDownButton
|
|
Packit |
b099d7 |
PressMB Btn1
|
|
Packit |
b099d7 |
CompareVisual List
|
|
Packit |
b099d7 |
ReleaseMB Btn1
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer FontCascade1
|
|
Packit |
b099d7 |
PressMB Btn1
|
|
Packit |
b099d7 |
LocatePointer FontPB2
|
|
Packit |
b099d7 |
ReleaseMB Btn1
|
|
Packit |
b099d7 |
CompareVisual ComboBox
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer ComboBox RComboBoxDropDownButton
|
|
Packit |
b099d7 |
PressMB Btn1
|
|
Packit |
b099d7 |
CompareVisual List
|
|
Packit |
b099d7 |
ReleaseMB Btn1
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer FontCascade1
|
|
Packit |
b099d7 |
PressMB Btn1
|
|
Packit |
b099d7 |
LocatePointer FontPB3
|
|
Packit |
b099d7 |
ReleaseMB Btn1
|
|
Packit |
b099d7 |
CompareVisual ComboBox
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer ComboBox RComboBoxDropDownButton
|
|
Packit |
b099d7 |
PressMB Btn1
|
|
Packit |
b099d7 |
CompareVisual List
|
|
Packit |
b099d7 |
ReleaseMB Btn1
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
Continue
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
# Set the value of the "Selected Position" scale to 3.
|
|
Packit |
b099d7 |
# Select "Set Selected Position" from the "Set ComboBox Values" menu.
|
|
Packit |
b099d7 |
# The 3rd item of the list should be selected.
|
|
Packit |
b099d7 |
# There will be a message in the term window indicating the the
|
|
Packit |
b099d7 |
# selectionCallback has been called. The reason should be XmCR_SELECT.
|
|
Packit |
b099d7 |
# Click on an item in the list. The selection callback should be invoked.
|
|
Packit |
b099d7 |
# The name of the item should appear in the Text field.
|
|
Packit |
b099d7 |
# Type "Kangaroo" into the Text field. The selectionCallback should
|
|
Packit |
b099d7 |
# be invoked.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer ComboScale5 RScaleSlider
|
|
Packit |
b099d7 |
DragSliderValue Right 3
|
|
Packit |
b099d7 |
LocatePointer ComboCascade1
|
|
Packit |
b099d7 |
PressMB Btn1
|
|
Packit |
b099d7 |
LocatePointer ComboSetPB6
|
|
Packit |
b099d7 |
ReleaseMB Btn1
|
|
Packit |
b099d7 |
CompareVisual ComboBox
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer ComboBox RComboBoxDropDownButton
|
|
Packit |
b099d7 |
PressMB Btn1
|
|
Packit |
b099d7 |
CompareVisual List
|
|
Packit |
b099d7 |
ReleaseMB Btn1
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer List RListItem 2
|
|
Packit |
b099d7 |
ClickMB Btn1
|
|
Packit |
b099d7 |
CompareVisual ComboBox
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer ComboBox RComboBoxDropDownButton
|
|
Packit |
b099d7 |
PressMB Btn1
|
|
Packit |
b099d7 |
CompareVisual List
|
|
Packit |
b099d7 |
ReleaseMB Btn1
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
Continue
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
# Set matchBehavior to QUICK_NAVIGATE.
|
|
Packit |
b099d7 |
# Select "Set Match Behavior" from the "Set ComboBox Values" menu.
|
|
Packit |
b099d7 |
# Post the List of the ComboBox by clicking MB1 on the downward pointing
|
|
Packit |
b099d7 |
# arrow.
|
|
Packit |
b099d7 |
# Type "W" in the Text widget.
|
|
Packit |
b099d7 |
# The "Watermelon" item should be displayed in the Text Field and
|
|
Packit |
b099d7 |
# become highlighted in the List.
|
|
Packit |
b099d7 |
# Type "W" again.
|
|
Packit |
b099d7 |
# The "Wallaby" item should now be displayed in the Text Field
|
|
Packit |
b099d7 |
# and should be highlighted in the List.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
LocatePointer ToggleMatch1
|
|
Packit |
b099d7 |
ClickMB Btn1
|
|
Packit |
b099d7 |
LocatePointer ComboCascade1
|
|
Packit |
b099d7 |
PressMB Btn1
|
|
Packit |
b099d7 |
LocatePointer ComboSetPB5
|
|
Packit |
b099d7 |
ReleaseMB Btn1
|
|
Packit |
b099d7 |
LocatePointer ComboBox RComboBoxDropDownButton
|
|
Packit |
b099d7 |
ClickMB Btn1
|
|
Packit |
b099d7 |
LocatePointer List
|
|
Packit |
b099d7 |
ClickKey <Shift> Kw
|
|
Packit |
b099d7 |
CompareVisual Text
|
|
Packit |
b099d7 |
CompareVisual List
|
|
Packit |
b099d7 |
ClickKey <Shift> Kw
|
|
Packit |
b099d7 |
CompareVisual Text
|
|
Packit |
b099d7 |
CompareVisual List
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
Continue
|
|
Packit |
b099d7 |
Exit
|