# $XConsortium: Form1g.scr /main/4 1995/07/17 20:19:32 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 #) Attach Child2 (yellow)'s RIGHT to FORM. LocatePointer sides3 ClickMB Btn1 LocatePointer attaches1 ClickMB Btn1 LocatePointer button2 ClickMB Btn1 CompareVisual form #) Attach Child2's LEFT to NONE. LocatePointer sides2 ClickMB Btn1 LocatePointer attaches0 ClickMB Btn1 LocatePointer button2 ClickMB Btn1 CompareVisual form #) Attach Child1 (blue)'s RIGHT to WIDGET. LocatePointer sides3 ClickMB Btn1 LocatePointer attaches3 ClickMB Btn1 LocatePointer button1 ClickMB Btn1 CompareVisual form #) Change Child2's label to "Maximize Life Expectancy". The form should resize #) so that both buttons are visible and Child2 is widened to show its whole #) label. LocatePointer labelText ClickMB Btn1 InputString "Maximize Life Expectancy" ClickKey KReturn CompareVisual form #) Clear both Child1 and Child2. LocatePointer clear1 ClickMB Btn1 LocatePointer clear2 ClickMB Btn1 Continue #) Attach Child2 (yellow)'s RIGHT to FORM. LocatePointer sides3 ClickMB Btn1 LocatePointer attaches1 ClickMB Btn1 LocatePointer button2 ClickMB Btn1 CompareVisual form #) Attach Child2's LEFT to NONE. LocatePointer sides2 ClickMB Btn1 LocatePointer attaches0 ClickMB Btn1 LocatePointer button2 ClickMB Btn1 CompareVisual form #) Attach Child1 (blue)'s RIGHT to WIDGET. LocatePointer sides3 ClickMB Btn1 LocatePointer attaches3 ClickMB Btn1 LocatePointer button1 ClickMB Btn1 CompareVisual form #) Attach Child1's LEFT to NONE. LocatePointer sides2 ClickMB Btn1 LocatePointer attaches0 ClickMB Btn1 LocatePointer button1 ClickMB Btn1 CompareVisual form #) Change Child1's width to 400. It should not change size. LocatePointer widthText ClickMB Btn1 InputString "400" ClickKey KReturn CompareVisual form #) Change Child1's width to 1000. Make several additional changes to the #) size of Child1. None of the requests should be granted. LocatePointer widthText ClickMB Btn1 InputString "1000" ClickKey KReturn CompareVisual form LocatePointer widthText ClickMB Btn1 InputString "200" ClickKey KReturn CompareVisual form LocatePointer widthText ClickMB Btn1 InputString "500" ClickKey KReturn CompareVisual form #) Test for CR 4854 #) Clear Child1 and Child2. The result should be the same as at the #) beginning of this screen. LocatePointer clear1 ClickMB Btn1 LocatePointer clear2 ClickMB Btn1 Continue #) Attach Child2 (yellow)'s TOP to WIDGET. LocatePointer sides0 ClickMB Btn1 LocatePointer attaches3 ClickMB Btn1 LocatePointer button2 ClickMB Btn1 CompareVisual form #) Attach Child2's RIGHT to FORM. LocatePointer sides3 ClickMB Btn1 LocatePointer attaches1 ClickMB Btn1 LocatePointer button2 ClickMB Btn1 CompareVisual form #) Attach Child2's BOTTOM to FORM. LocatePointer sides1 ClickMB Btn1 LocatePointer attaches1 ClickMB Btn1 LocatePointer button2 ClickMB Btn1 CompareVisual form #) Attach Child2's LEFT to NONE. LocatePointer sides2 ClickMB Btn1 LocatePointer attaches0 ClickMB Btn1 LocatePointer button2 ClickMB Btn1 CompareVisual form #) Attach Child1 (blue)'s RIGHT to POSITION 5. LocatePointer positionScale RScaleSlider DragSliderValue Right 5 LocatePointer sides3 ClickMB Btn1 LocatePointer attaches6 ClickMB Btn1 LocatePointer button1 ClickMB Btn1 CompareVisual form #) Get readings on width of form and of both Child1 and Child2 by pressing #) the appropriate "Get Size" buttons. LocatePointer formsize ClickMB Btn1 LocatePointer target0 ClickMB Btn1 LocatePointer WHButton ClickMB Btn1 LocatePointer target1 ClickMB Btn1 LocatePointer WHButton ClickMB Btn1 #) Attach Child1's LEFT to NONE. No visible resizing should occur. #) Get readings on sizes again. They should be identical to the previous #) readings. (Look closely at form's numbers.) LocatePointer sides2 ClickMB Btn1 LocatePointer attaches0 ClickMB Btn1 LocatePointer button1 ClickMB Btn1 CompareVisual form LocatePointer formsize ClickMB Btn1 LocatePointer target0 ClickMB Btn1 LocatePointer WHButton ClickMB Btn1 LocatePointer target1 ClickMB Btn1 LocatePointer WHButton ClickMB Btn1 Exit