|
Packit |
b099d7 |
/*
|
|
Packit |
b099d7 |
* Motif
|
|
Packit |
b099d7 |
*
|
|
Packit |
b099d7 |
* Copyright (c) 1987-2012, The Open Group. All rights reserved.
|
|
Packit |
b099d7 |
*
|
|
Packit |
b099d7 |
* These libraries and programs are free software; you can
|
|
Packit |
b099d7 |
* redistribute them and/or modify them under the terms of the GNU
|
|
Packit |
b099d7 |
* Lesser General Public License as published by the Free Software
|
|
Packit |
b099d7 |
* Foundation; either version 2 of the License, or (at your option)
|
|
Packit |
b099d7 |
* any later version.
|
|
Packit |
b099d7 |
*
|
|
Packit |
b099d7 |
* These libraries and programs are distributed in the hope that
|
|
Packit |
b099d7 |
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
Packit |
b099d7 |
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
Packit |
b099d7 |
* PURPOSE. See the GNU Lesser General Public License for more
|
|
Packit |
b099d7 |
* details.
|
|
Packit |
b099d7 |
*
|
|
Packit |
b099d7 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
b099d7 |
* License along with these librararies and programs; if not, write
|
|
Packit |
b099d7 |
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
Packit |
b099d7 |
* Floor, Boston, MA 02110-1301 USA
|
|
Packit |
b099d7 |
*/
|
|
Packit |
b099d7 |
/*
|
|
Packit |
b099d7 |
* HISTORY
|
|
Packit |
b099d7 |
*/
|
|
Packit |
b099d7 |
/*
|
|
Packit |
b099d7 |
static char rcsid[] = "$XConsortium: Text8.dat /main/6 1995/07/13 19:31:40 drk $"
|
|
Packit |
b099d7 |
*/
|
|
Packit |
b099d7 |
#) The parent is currently a Bulletin Board.
|
|
Packit |
b099d7 |
The focus is on the Default Button (lower right corner). Press
|
|
Packit |
b099d7 |
Return. You should see the message \"The Default Button
|
|
Packit |
b099d7 |
Activate callback was made\" in the stdout window.
|
|
Packit |
b099d7 |
#) Move the focus to the Single Line text widget by pressing <Tab>.
|
|
Packit |
b099d7 |
Press Return. You will see messages for both Activate and
|
|
Packit |
b099d7 |
Default Button Activate callbacks. The Default Button will
|
|
Packit |
b099d7 |
appear to press in and out as well.
|
|
Packit |
b099d7 |
#) The insertion cursor (I-beam) should be at position number 5.
|
|
Packit |
b099d7 |
#) Click MB1 somewhere in the Single Line text widget.
|
|
Packit |
b099d7 |
Use the left or right arrow keys to move the insertion cursor
|
|
Packit |
b099d7 |
to one side.
|
|
Packit |
b099d7 |
#) Move the insertion cursor
|
|
Packit |
b099d7 |
to the end of the text and start typing. Make sure that each
|
|
Packit |
b099d7 |
character is displayed as you type it.
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
#) Move the focus into the Multi Line text widget and press Return.
|
|
Packit |
b099d7 |
The MultiLine text widget should appear in the \"variable\" font.
|
|
Packit |
b099d7 |
There should be no Activate messages; instead, you get a new line
|
|
Packit |
b099d7 |
inserted at the cursor.
|
|
Packit |
b099d7 |
#) Move the focus back and forth between the Multi Line and Single Line
|
|
Packit |
b099d7 |
text widgets several times by clicking MB1 in each. Make sure no
|
|
Packit |
b099d7 |
extra cursors are left behind.
|
|
Packit |
b099d7 |
#) With focus in Multi Line Text, press Ctrl <Tab>. The focus moves to
|
|
Packit |
b099d7 |
the Scrollbar. Press Return. You get the Default Button Activate
|
|
Packit |
b099d7 |
message in the stdout window.
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
#) Press <Tab> again and focus moves to the TextField Widget.
|
|
Packit |
b099d7 |
Press Return. You should get both Activate and Default Activate
|
|
Packit |
b099d7 |
messages.
|
|
Packit |
b099d7 |
#) Move the insertion cursor
|
|
Packit |
b099d7 |
to the end of the TextField widget and start typing. Be sure
|
|
Packit |
b099d7 |
that each character is displayed as you type it.
|
|
Packit |
b099d7 |
#) Press <Tab>. Focus moves to the Default Button. Use the
|
|
Packit |
b099d7 |
down-arrow key to move the focus to the Toggle Button. Press Return.
|
|
Packit |
b099d7 |
You should get the Default Button Activate message, and the
|
|
Packit |
b099d7 |
Default Button should appear to press in and out.
|
|
Packit |
b099d7 |
#) Press space. You should get the Value Changed message, and the Toggle
|
|
Packit |
b099d7 |
Button indicator fills.
|
|
Packit |
b099d7 |
#) Use the down-arrow key to move the focus to the Other Button.
|
|
Packit |
b099d7 |
Give the focus to a different window. Move the focus back to the
|
|
Packit |
b099d7 |
Text8 window. The focus and the Default Button shadow should still
|
|
Packit |
b099d7 |
be on the Other Button.
|
|
Packit |
b099d7 |
#) Press Return with focus on Other Button. You should get the Activate
|
|
Packit |
b099d7 |
message.
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
#) Move focus to the Single Line text widget and press the Help key.
|
|
Packit |
b099d7 |
A dialog box pops up saying that box is help for Text.
|
|
Packit |
b099d7 |
#) Move focus to the Default Button and press the Help key.
|
|
Packit |
b099d7 |
It has a customized help dialog as well.
|
|
Packit |
b099d7 |
#) Move focus to the Other Button and bring up its customized help dialog.
|
|
Packit |
b099d7 |
#) Move focus to all the other widgets. For every other widget, the help dialog
|
|
Packit |
b099d7 |
will start "This is generic help for the application..."
|
|
Packit |
b099d7 |
Make sure you can get some help dialog with the focus in any widget.
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
#) Enter the Multi Line text widget and press Return. Instead of moving
|
|
Packit |
b099d7 |
to the next line, the message \"The return key has been remapped to
|
|
Packit |
b099d7 |
this routine\" appears in the stdout window.
|
|
Packit |
b099d7 |
#) Double click MB1 on the Multi Line Text widget.
|
|
Packit |
b099d7 |
You'll see a message, "The user has double-clicked."
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
#) Click on Other Button. It will become insensitive.
|
|
Packit |
b099d7 |
#) Click on Default Button. It will also become insensitive.
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
#) The parent is currently a Bulletin Board Dialog.
|
|
Packit |
b099d7 |
The MultiLine text widget should appear in the \"variable\" font.
|
|
Packit |
b099d7 |
All the widgets in this client should behave the way they did
|
|
Packit |
b099d7 |
on the first panel. Move focus around and press Return in each
|
|
Packit |
b099d7 |
widget, and review the callback messages.
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
#) Move focus to each button and press the help key.
|
|
Packit |
b099d7 |
The Single Line text widget,
|
|
Packit |
b099d7 |
Default Button, and Other Button should give customized help messages.
|
|
Packit |
b099d7 |
All other widgets give the \"generic\" help message.
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
#) In the Multi Line text widget, the Return key has again been remapped.
|
|
Packit |
b099d7 |
Press Return in the Multi Line text widget and the message \"The
|
|
Packit |
b099d7 |
Return key has been remapped to this routine\" will appear in the
|
|
Packit |
b099d7 |
stdout window.
|
|
Packit |
b099d7 |
#) Double-click MB1 has also been remapped to produce a message.
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
#) Other Button and Default Button will become insensitive when activated.
|
|
Packit |
b099d7 |
Click on each of them to verify this.
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
#) The parent is currently a Form. Navigate to each widget and press Return.
|
|
Packit |
b099d7 |
All the widgets should behave as they have in the past panels.
|
|
Packit |
b099d7 |
The MultiLine text widget should appear in the \"variable\" font.
|
|
Packit |
b099d7 |
E)
|