/*
* 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
*/
/*
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 <Tab>.
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 <Tab>. The focus moves to
the Scrollbar. Press Return. You get the Default Button Activate
message in the stdout window.
C)
#) Press <Tab> 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 <Tab>. 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)