/* * @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 */ /* static char rcsid[] = "$XConsortium: SelectBox1.dat /main/5 1995/07/13 19:19:25 drk $" */ #) A client with a SelectionBox will appear; the dialogTitle should be MyDialogTitle. The SelectionBox should consist of the following items: !) a) a list, labeled \"Pick a Test\", with twenty items visible, b) a scrollbar to the right of the list, c) a selection text widget , labeled \"test:\", below the list, and d) four pushbuttons at the bottom, labeled \"OK\", \"Apply\", \"Cancel\", and \"Help\". C) #) Click MB1 on the item \"decor00\" in the list. The selected item should be highlighted, and \"decor00\" should appear in the selection text widget \"test:\". #) Click MB1 on the item \"func04\" in the list. The selected item should be highlighted, and \"func04\" should appear in the selection text widget \"test:\". #) Press and hold down MB1 on \"btest3\" in the list. \"btest3 should be highlighted. Drag the pointer down to \"decor07\". The item under the pointer should always be highlighted. Release MB1. \"decor07\" should appear in the selection text widget \"test:\". #) Click MB1 on the \"OK\" button. \"ok: decor07\" should appear in the xterm window. C) #) Move the client window. Iconify the client window. Normalize the client window. Resize the client window. #) Move the pointer into the \"test:\" selection text widget. Press the backspace key repeatedly to remove \"decor07\" from the \"test:\" selection text widget. Press and hold down MB1 on the bottom arrow of the scrollbar. The slider should move down and the list should scroll. Release MB1. Press and hold down MB1 on the scrollbar slider. Drag the slider to the bottom of the scrollbar. The list should scroll. Release MB1. #) Move the pointer into the \"test:\" selection text widget. Type \"pitest1\". Click MB1 on the \"OK\" button. \"ok: pitest1 should appear in the xterm window. Double click MB1 on \"parse00\" in the list. \"parse00\" should be highlighted, and \"parse00\" should appear in the \"test:\" selection text widget. \"ok: parse00\" should also appear in the xterm window. C) #) Move the pointer into the client window. Press the backspace key once. Type \"3\". Press the return key. \"ok: parse03\" should appear in the xterm window. #) Press and hold down MB1 on the \"OK\" button. The button should appear pressed in. Drag the pointer off of the \"OK\" button. The button should appear popped out. Release MB1. #) Click MB1 on the \"Apply\" button. \"apply: parse03\" should appear in the xterm window. #) Click MB1 on the \"Cancel\" button. \"cancel: parse03\" should appear in the xterm window. #) Click MB1 on the \"Help\" button. C) #) Move the pointer into the \"test:\" selection text widget. Press the backspace key twice. Type \"25\". Click MB1 on the \"OK button. \"noMatch: parse25\" should appear in the xterm window. #) Move pointer out of the client window. Press and hold down MB1. Move pointer back into the client window. Move the pointer out of the client window. Release MB1. C) #) The InstructionBox's help button will now become sensitive and will be labeled \"Measure\". #) Press the Measure button. A new dialog appears which allows you to examine the relationship between textColumns and width. Everytime the dialog pops up, the values displayed are the current values for those resources of the SelectionBox. #) Try setting the width larger and smaller, pressing OK to actually apply the change. #) Now set the number of columns larger and smaller. C) #) The text area of the selection box has been unmanaged. #) Try changing width and textColumns again. #) If you click on any of the buttons in the SelectionBox, that button will be unmanaged. Unmanage each button in turn and observe the effect on width and textColumns. E)