|
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: DNDList1.dat /main/6 1995/07/14 11:54:27 drk $"
|
|
Packit |
b099d7 |
*/
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) This is the DNDList1 test.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) This is just to test the DND support in the Motif List widget.
|
|
Packit |
b099d7 |
To test this, you need to run another Motif client with an
|
|
Packit |
b099d7 |
editable Text(Field) widget in it.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Position the pointer on the item \"PushButton\" in the list.
|
|
Packit |
b099d7 |
Initiate drag by pressing BTransfer (MB2 by default).
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) With BTransfer pressed, drag the pointer over to the Text
|
|
Packit |
b099d7 |
widget, and release BTransfer. The text \"PushButton\" should
|
|
Packit |
b099d7 |
appear in the Text widget.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
C)
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Select \"DrawnButton\", \"Label\", \"ArrowButton\" items in the
|
|
Packit |
b099d7 |
List by clicking MouseButton1 on these items.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Initiate drag with the pointer positioned on one of these
|
|
Packit |
b099d7 |
selected items and pressing BTransfer.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) With BTransfer pressed, drag the pointer over to the Text widget,
|
|
Packit |
b099d7 |
and release BTransfer. Three items \"DrawnButton\", \"Label\"
|
|
Packit |
b099d7 |
and \"ArrowButton\" should appear in the Text widget on three
|
|
Packit |
b099d7 |
consecutive lines.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) Initiate drag by pressing BTransfer with the pointer over the
|
|
Packit |
b099d7 |
item \"Separator\" in the List.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
#) With BTransfer pressed, drag the pointer over to the Text widget,
|
|
Packit |
b099d7 |
and release BTransfer. This time, only the text \"Separator\"
|
|
Packit |
b099d7 |
should appear new in the Text widget.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
E)
|