Blob Blame History Raw
/* $XConsortium: DNDMenu1.dat /main/4 1995/07/17 10:05:28 drk $ */
/*
 * 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
*/


#) This is a basic test for dragging from menus.
#) A client will appear containing a tear-off Pulldown menu with a MenuBar
   labeled "MenuBar", an Option menu with "OptionItem1" displayed in the 
   selection area , and a label "PopupMenu" for which an event handler has
   been set, which posts a tear-off Popup menu on pressing MB3.
#) There will also be a Popup shell. containing a Text widget.
C)

#) Initiate Drag by pressing BTransfer (MB2 by default) with the 
   pointer positioned on the MenuBar. 
#) With BTransfer pressed, drag the pointer over the Text widget. 
#) Release BTransfer. The dragIcon should melt into the background, indicating
   a successful drop. The line "MenuBar" should appear in the Text widget.
C)


#) Post the Pulldown menu, by pressing MB1 on the MenuBar,
   and tear it off by releasing MB1 on the tear-off
   control.  The menu should have one item "PulldownMenu".
#) Initiate Drag by pressing BTransfer (MB2 by default) with the 
   pointer positioned on the menu item. 
#) With BTransfer pressed, drag the pointer over the Text widget. 
#) Release BTransfer. The dragIcon should melt into the background, indicating
   a successful drop. The line "PulldownMenu" should appear in the Text widget.
#) Dismiss the tear-off by choosing "Close" from the window menu.
C)


#) Initiate Drag by pressing BTransfer (MB2 by default) with the 
   pointer positioned on the selection area, of the Option menu.
#) With BTransfer pressed, drag the pointer over the Text widget. 
#) Release BTransfer. The dragIcon should melt into the background, indicating
   a successful drop. The line "OptionItem1" should appear in the Text widget.
C)

#) Post the Popup menu by pressing MB3 on the label, and tear it off by 
   releasing MB3 on the tear-off control. The menu should have a single item,
   "PopupMenu".
#) Initiate Drag by pressing BTransfer (MB2 by default) with the 
   pointer positioned on the menu item of the Popup.
#) With BTransfer pressed, drag the pointer over the Text widget. 
#) Release BTransfer. The dragIcon should melt into the background, indicating
   a successful drop. The line "PopupMenu" should appear in the Text widget.
C)

E)