Blob Blame History Raw
# $XConsortium: Form1h.scr /main/6 1996/08/20 13:42:50 jakku $
# 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


# Set the offset scale to a number greater than 5.

LocatePointer offsetScale RScaleSlider
DragSliderValue Right 7

# Reattach the top and left of Child1 to FORM so that the offset is applied.

LocatePointer sides0
ClickMB Btn1
LocatePointer attaches1
ClickMB Btn1
LocatePointer sides2
ClickMB Btn1
LocatePointer attaches1
ClickMB Btn1
LocatePointer button1
ClickMB Btn1
CompareVisual form

# Attach the top of Child2 to WIDGET.

LocatePointer sides0
ClickMB Btn1
LocatePointer attaches3
ClickMB Btn1
LocatePointer button2
ClickMB Btn1
CompareVisual form


# Find out the size of the Form by pressing the Report Form Size button.
# Increase the form width by one pixel. Do this twice.
# Note the appearance of the parent form's shadow!
# Decrease the form width by one pixel. 
# The appearance of the form shadow should not change.


LocatePointer formSizeText9
ClickMB Btn1

InputString "76"
ClickKey KReturn
CompareVisual form

InputString "77"
ClickKey KReturn
CompareVisual form

InputString "76"
ClickKey KReturn
CompareVisual form


Exit