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[] = "$TOG: SimpleM1.dat /main/6 1999/11/22 18:46:33 jff $"
*/

#) A client window will appear, containing a menubar, an option
   menu, a row of three pushbuttons, and two groupings of toggle
   buttons. 
#) The menubar will contain three cascade buttons, labeled
   cascade 0, cascade 1 and cascade 2. 
#) The option menu's initial setting will read cascade 0, and
   there should be a 3-D square glyph just to the right of the text. 
#) The left group of toggle buttons will have diamond indicators,
   labels radio 0, radio 1 and radio 2, and the radio 1
   toggle will be on. 
#) The right group of toggle buttons will have square indicators,
   labels reading work 0, work 1 and work 2, and all three
   indicators should be off. 
C)

#) Press and hold down MB1 in the menubar item cascade 1.  A
   pulldown menu with three entries will appear.  The entries will
   be labeled pulldown0, pulldown 1 and pulldown 2.  Each
   entry will have a second label (accelerator text) to the right of
   the primary label.  The accelerator text labels will read
   Ctrl+0, Ctrl+1 and Ctrl+2, respectively. 
#) Drag the pointer down to pulldown 1 and release MB1.  A
   message indicating that the simple activate callback has been
   called will be printed in the xterm window.  The client data
   number will correspond to the label of the button activated. 
#) With the focus in the client window, press Ctrl+1 (the control
   key together with the 1 key.)  A message identical to that of
   step 2 will be printed in the xterm window. 
C)

#) Press MB1 in the cascade button part of the option menu (the part
   to the right of the word options.)  A popup menu will be
   posted over the cascade button, such that the entry in the popup
   which corresponds to the entry which had been in the cascade
   button will be positioned directly over the cascade button. 
#) Drag the pointer to any other entry in the popup menu and release
   MB1.  The menu will unpost and the selected entry will be
   displayed to the right of the word options. 
#) The option menu cascade button will now be highlighted with the
   location cursor.  Press the spacebar to post the option menu once
   again.  Use the up/down arrow keys to cycle through the options,
   and press the spacebar again to make a selection and unpost the
   option menu. 
C)

#) Click MB1 in the button labeled Pop Simple Popup Menu 1.
   Release MB1.  A popup menu will post at the location where MB1
   was clicked.  
#) The popup menu will contain entries labeled popup push,
   popup toggle, popup radio, popup cascade, a single
   separator, a double separator and popup title. 
#) Click MB3 (or the menu mouse button for your system) over the
   popup radio entry.  The popup menu will unpost.  Post the
   popup menu once more with MB1.  The popup radio button's
   indicator will be on.  Unpost the menu. 
#) Post the menu again.  This time select the popup toggle entry.
   Post the menu a third time.  The indicator for the popup radio
   entry should be diamond shaped and the indicator for the
   popup toggle entry will be square.  Unpost the menu. 
#) Press MB3 in the background of the client window.  The same popup
   menu should appear.  Drag the mouse over the "popup title" entry.
   Release MB3.

C)

#) Press MB1 in the pushbutton labeled Change Option Menu.  The
   label in the cascade button part of the option menu will change
   to alternate 0 and, when posted, the option menu entries will
   now contain the labels alternate 0. alternate1 and
   alternate 2. 
#) The 3-d square to the right of the label will move over to
   accomodate the longer label.  The raised area will enlarge
   to accomodate the longer label. 
#) Press MB1 in the pushbutton labeled Add CascGadget to Menubar.
   A fourth cascade button, labeled new_cascade will appear in
   the menubar.  This fourth button should have an associated
   pulldown with three entries. 
C)

#) Click MB1 on the toggle button labeled radio 0.  The diamond
   indicator for radio 0 will turn on, and the diamond indicator
   for radio 1 will turn off. 
#) Click MB1 on the toggle button labeled work 0.  The square
   indicator for work 0 will turn on. 
#) Click MB1 on the toggle button labeled work 1.  The square
   indicator will turn on.  The indicator for work 0 will remain
   on as well. 
C)

#) Give the client window the keyboard focus.  Press
   the Tab key until the location cursor is over the button labeled
   radio 0.  Press the spacebar.  The diamond indicator for
   radio 0 will remain on. 
#) Press the down arrow key until the location cursor is over the
   button labeled radio 1.  Press the spacebar key.  The diamond
   indicator for radio 1 will turn on.  The indicator for
   radio 0 will turn off. 
#) Press the Tab key until the location cursor is over the button
   labeled work 0.  Repeatedly press the down arrow and confirm
   that the location cursor returns to work 0 after cycling
   through work 1 and work 2. 
C)

#) Give the client window the keyboard focus. Press
   F10 (or the Menubar key on your system) to move the location
   cursor into the menubar.  Use the left/right arrow keys to cycle
   between the two menubar entries which have pulldown menus
   associated with them (cascade 1 and new_cascade). 
#) With the location cursor over new_cascade, press the down
   arrow to post a pulldown menu.  Use the up/down arrow keys to
   cycle through the entries in the pulldown. 
#) Press the left arrow key to move to the previous pulldown.  Press
   the right arrow key to move back to the new_cascade pulldown. 
#) Press KCancel to exit the menubar. 
E)