/* * @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: Text1.dat /main/6 1995/07/13 19:25:25 drk $" */ @) The text widget's contents read "Some Text." If Adobe fonts are installed on your system, then the text widget will use the Adobe courier 14 font. Otherwise the default font will be used. @) There should be a warning in the stdout window indicating an illegal value for the rep type XmRScrollingPolicy. This should be followed by a message indicating that the GetValues of scrollingPolicy now equals XmAPPLICATION_DEFINED. #) Select a few letters in the middle of the text by dragging MB1. Now, cut the selection using by pressing the osfCut key. The remaining text should be free of any garbage pixels in the area where the selection was. C) #) Move the pointer into the client window after the text already present and click MB1. Next, type Return and the following: !) Humpty Dumpty sat on a wall. Humpty Dumpty had a great fall. #) Type the next line, and note that after the horizontal scrollbar slider reaches the right side of its trough, it becomes smaller with each additional keystroke: !) All the king's horses and all the king's men. #) Again, move the pointer into the client window after the last sentence you just typed and type Return. Note that the vertical scrollbar slider gets smaller. C) #) Move the vertical scrollbar's slider all the way up to the top. #) Resize the window much larger. The scrollbar sliders should fill the troughs again. #) Move the cursor into the client window and verify that the I-beam is visible in the newly exposed text areas. C) #) Try the following MB1 multiple-click tests, and verify the selections: !) Single click -- places insertion cursor. Double click -- selects word. Triple click -- selects line. Quadruple click -- selects all the text. C) @) The following test is concerned about using MCtrlKUp and MCtrlKDown to move the cursor back and forth between paragraphs, which was reported as a bug (# 3145). !) #) Move the cursor to the end of the line. Enlarge the window in order to see ten or more lines. Type the following lines, typing a space where the instructions indicate \"_\". !) a _x_ b #) With the cursor located after the letter \"b\", press KUp. The cursor should move to the position before the letter \"x\". Press KUp again. The cursor should now be located before the letter \"a\". Pressing KDown should move the cursor back in front of the letter \"x\". Pressing KDown again should move the cursor after the letter \"b\". C) @) The following two panels are a test case for CR 5166. #) The text widget should now have two lines of text displayed. Move the vertical scrollbar down to the bottom of the trough. C) #) The text \"Spider Lives!" should now be displayed. C) E)