# $XConsortium: Navigation15.scr /main/4 1995/07/17 20:44:10 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
#) Testing the XmNinitialFocus resource of a DrawingArea.
#) You should see a Form with two DrawingArea children separated by
# a seperator. The topmost DrawingArea has two children both of
# which are TextFields.
Continue
#) XmNinitialFocus set to NULL for both DrawingAreas.
#) Use the KTab key to traverse around the form.
#) You should see messages printed to stdout that indicate the focus is
# being registered by the two TextFields and DrawingArea 2 (the one on
# the bottom.)
WindowFocus Shell1
LocatePointer textfield1
ClickMB Btn1
CompareVisual textfield1
ClickKey KTab
CompareVisual textfield2
ClickKey KTab
CompareVisual form
ClickKey KTab
CompareVisual form
ClickKey KTab
CompareVisual textfield2
ClickKey KTab
Continue
#) XmNinitialFocus set to non-NULL for both DrawingAreas.
#) Use the KTab key to traverse around the form.
#) You should see messages printed to stdout that indicate the focus is
# being registered only by the two DrawingAreas. The Focus should not
# go to either of the TextFields.
WindowFocus Shell1
ClickKey KTab
CompareVisual form
ClickKey KTab
CompareVisual form
ClickKey KTab
CompareVisual form
Exit