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: DNDLabel1.dat /main/6 1995/07/14 11:54:03 drk $"
*/


#) This is the DNDLabel1 test.

#) To test this, you need to run another Motif client with an
   editable Text(Field) widget in it.

#) You should see a Label widget with two-line label.

#) Position the pointer anywhere on the Label. Initiate drag by 
   pressing BTransfer (MB2 by default).

#) With BTransfer pressed, drag the pointer over to the Text
   widget, and release BTransfer. The text \"Two-Line\" should
   appear in the Text widget at the point where the button was
   released and on the next line the text \"Label String\"
   should appear.

C)

#) This panel tests that a dragged object can be moved and a drag
   completed via the keyboard, when the drag is initiated using the default
   BTransfer action (Pressing MB2).

#) Position the pointer anywhere on the Label. Initiate drag by 
   pressing BTransfer (MB2 by default).

#) With BTransfer pressed, click on KUp. The drag icon should move
   up. Repeat with KDown, KLeft and KRight. The drag icon should move
   in the direction corresponding to the arrow key. Move the drag icon until
   the hotspot is within the Text widget, and hit KReturn.
   The text \"Two-Line\" should appear in the Text widget at the point 
   where the cursor in the Text widget  was and on the next line the 
   text \"Label String\" should appear.
#) Position the pointer anywhere on the Label. Initiate drag by 
   pressing BTransfer (MB2 by default).
#) Drag the pointer over to the Text widget. Now, hit the osfActivate key.
   The text \"Two-Line\" should appear in the Text widget at the point 
   where the cursor was in the Text widget and on the next line the 
   text \"Label String\" should appear.
C)

#) This panel tests that a drag action can be initiated via the keyboard.
#) The translations for the Label have been overridden so that BTransfer is
   now <Ctrl>d.
#) Position the pointer anywhere on the Label, and click <Ctrl>d. A drag
   action should be initiated. 
#) Click on KUp. The drag icon should move up. Repeat with KDown, KLeft and 
   KRight. The drag icon should move in the direction corresponding to the 
   arrow key. Move the icon until the hotspot is within the Text widget, 
   and hit KReturn. The text \"Two-Line\" should appear in the Text widget 
   at the point where the pointer was , and on the next line the 
   text \"Label String\" should appear.
C)

E)