/* * @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: Text8.dat /main/6 1995/07/13 19:31:40 drk $" */ #) The parent is currently a Bulletin Board. The focus is on the Default Button (lower right corner). Press Return. You should see the message \"The Default Button Activate callback was made\" in the stdout window. #) Move the focus to the Single Line text widget by pressing . Press Return. You will see messages for both Activate and Default Button Activate callbacks. The Default Button will appear to press in and out as well. #) The insertion cursor (I-beam) should be at position number 5. #) Click MB1 somewhere in the Single Line text widget. Use the left or right arrow keys to move the insertion cursor to one side. #) Move the insertion cursor to the end of the text and start typing. Make sure that each character is displayed as you type it. C) #) Move the focus into the Multi Line text widget and press Return. The MultiLine text widget should appear in the \"variable\" font. There should be no Activate messages; instead, you get a new line inserted at the cursor. #) Move the focus back and forth between the Multi Line and Single Line text widgets several times by clicking MB1 in each. Make sure no extra cursors are left behind. #) With focus in Multi Line Text, press Ctrl . The focus moves to the Scrollbar. Press Return. You get the Default Button Activate message in the stdout window. C) #) Press again and focus moves to the TextField Widget. Press Return. You should get both Activate and Default Activate messages. #) Move the insertion cursor to the end of the TextField widget and start typing. Be sure that each character is displayed as you type it. #) Press . Focus moves to the Default Button. Use the down-arrow key to move the focus to the Toggle Button. Press Return. You should get the Default Button Activate message, and the Default Button should appear to press in and out. #) Press space. You should get the Value Changed message, and the Toggle Button indicator fills. #) Use the down-arrow key to move the focus to the Other Button. Give the focus to a different window. Move the focus back to the Text8 window. The focus and the Default Button shadow should still be on the Other Button. #) Press Return with focus on Other Button. You should get the Activate message. C) #) Move focus to the Single Line text widget and press the Help key. A dialog box pops up saying that box is help for Text. #) Move focus to the Default Button and press the Help key. It has a customized help dialog as well. #) Move focus to the Other Button and bring up its customized help dialog. #) Move focus to all the other widgets. For every other widget, the help dialog will start "This is generic help for the application..." Make sure you can get some help dialog with the focus in any widget. C) #) Enter the Multi Line text widget and press Return. Instead of moving to the next line, the message \"The return key has been remapped to this routine\" appears in the stdout window. #) Double click MB1 on the Multi Line Text widget. You'll see a message, "The user has double-clicked." C) #) Click on Other Button. It will become insensitive. #) Click on Default Button. It will also become insensitive. C) #) The parent is currently a Bulletin Board Dialog. The MultiLine text widget should appear in the \"variable\" font. All the widgets in this client should behave the way they did on the first panel. Move focus around and press Return in each widget, and review the callback messages. C) #) Move focus to each button and press the help key. The Single Line text widget, Default Button, and Other Button should give customized help messages. All other widgets give the \"generic\" help message. C) #) In the Multi Line text widget, the Return key has again been remapped. Press Return in the Multi Line text widget and the message \"The Return key has been remapped to this routine\" will appear in the stdout window. #) Double-click MB1 has also been remapped to produce a message. C) #) Other Button and Default Button will become insensitive when activated. Click on each of them to verify this. C) #) The parent is currently a Form. Navigate to each widget and press Return. All the widgets should behave as they have in the past panels. The MultiLine text widget should appear in the \"variable\" font. E)