Blob Blame History Raw
# $XConsortium: StringExt.scr /main/4 1995/07/17 20:46:57 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

# @) StringExt tests the XmString functions which get dimension information 
# for displaying XmStrings. The values returned from the XmString functions
# are compared against the values returned from the function XTextExtent().

# #) A blank drawing area widget should be displayed.
# #) Click MB1 in the drawing area widget. The strings \"X is an Example of Z\"
# and \"Z is an Example of X\" should now be displayed in the drawing area widget.
LocatePointer DrawingArea
ClickMB Btn1
CompareVisual DrawingArea

# A rectangle is drawn around each string where the dimensions of the rectangle
# are the dimensions returned from XmStringExtent(). Verify that the rectangles
# represent the smallest bounding box which encloses each string.
# #) Tables have been printed to stdout which list the functions called
# and the dimensions returned from each function for the given string. 
# A message will then be printed indicating whether each XmString function
# passed or failed. If your term window is small, you may need to scroll
# in order to see all the text. 

# C)
Continue

# E)
Exit