Blob Blame History Raw
/* 
 * 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: DrawArea2.dat /main/6 1995/07/13 18:30:00 drk $"
*/
!) This is a simple Drawing Area client. 
#) The focus is on the button. Press TAB to put the focus
   into the drawing area. Press any key on the keyboard.
   You should see a message about a keypress being received
   but not processed.
   This is normal and desireable.
#) The Drawing area is surrounded by a frame and
   itself should have a shadow thickness of 5 pixels. 
#) To use the client:  Click MB1 anywhere in the client. A line will be drawn
   from 0,0 to your current location. Each time you click MB1, a line will be drawn from your
   previous location to your current location. If you click MB2 or MB3, no line will be drawn, but the beginning
   point will be reset to your current location.
#) Click Btn1 one more time anywhere in the Drawing Area. 
#) Press the Shift key. You should receive the message about keypress.
#) Press any other key alone, then with the Shift key held down. You should
receive the keypress message.
#) Draw another line with Btn1 clicks.
#) Press the PushButton. The DrawingArea will resize and several messages will
be printed out. None of the messages should mention that an error has 
been encountered.
C)
#) The way button and key presses has been modified internally to use 
translations. Things should work the same way in the Drawing Area.
C)
#) An override shell has popped up, containing a label "Put the focus in
this window." Move your pointer into the override shell window.
E)