/* * @OPENGROUP_COPYRIGHT@ * COPYRIGHT NOTICE * Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc. * Copyright (c) 1996, 1997, 1998, 1999, 2000 The Open Group * ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for * the full copyright text. * * This software is subject to an open license. It may only be * used on, with or for operating systems which are themselves open * source systems. You must contact The Open Group for a license * allowing distribution and sublicensing of this software on, with, * or for operating systems which are not Open Source programs. * * See http://www.opengroup.org/openmotif/license for full * details of the license agreement. Any use, reproduction, or * distribution of the program constitutes recipient's acceptance of * this agreement. * * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS * PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY * WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY * OR FITNESS FOR A PARTICULAR PURPOSE * * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT * NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE * EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* * HISTORY */ /* $XConsortium: ToggleBtn5.dat /main/4 1995/07/13 17:33:17 drk $ */ /* CR 5303 */ #) A bulletin board containing 4 toggle buttons is created. The initial spacing (XmNspacing) is set to 4. The purpose of the test is to make sure that reducing and increasing the spacing works. This tests CR5303. #) First click MB1 on ToggleButton1. The spacing should increase to 50. The spacing value for each button is printed on the calling xterm. #) Next click on MB1 ToggleButton2. The spacing should DECREASE to 5. The spacing value for each button is printed on the calling xterm. #) Next click on MB1 ToggleButton3. The spacing should increase to 100. The spacing value for each button is printed on the calling xterm. #) Finally, click MB1 on ToggleButton4. The spacing should DECREASE to 75. The spacing value for each button is printed on the calling xterm. C) /* CR 5163 */ #) A bulletin board containg 6 children is created, 1 ToggleButton, one Lable, and 4 PushButtons. They are arranged in two rows of three. The top row contains the Toggle, Lable and one Pushbutton. Clicking MB1 on the corresponding PushButton below will change the XmNy resource and move the children below the 'Move' PushButtons. The children should NOT change size. This test corresponds to CR 5163 (ToggleButton resizes to minimum when changing any resource). #) First click MB1 on "Move TglBtn1". The "ToggleButton1" child should move below the "Move TglBtn1" PushButton but should NOT change size. #) Next, click MB1 on "Move PushBtn1". The "PushButton1" child should move below the "Move PushBtn" PushButton but should NOT change size. #) Finally, click MB1 on "Move Lbl1". The "Lable1" child should move below the "Move Lbl1" PushButton but should NOT change size. C) E)