1
.\" $XConsortium: simple_drop.man /main/4 1995/07/17 10:46:05 drk $
2
...\" @OPENGROUP_COPYRIGHT@
4
...\" Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
5
...\" Copyright (c) 1996, 1997, 1998, 1999, 2000 The Open Group
6
...\" ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
7
...\" the full copyright text.
9
...\" This software is subject to an open license. It may only be
10
...\" used on, with or for operating systems which are themselves open
11
...\" source systems. You must contact The Open Group for a license
12
...\" allowing distribution and sublicensing of this software on, with,
13
...\" or for operating systems which are not Open Source programs.
15
...\" See http://www.opengroup.org/openmotif/license for full
16
...\" details of the license agreement. Any use, reproduction, or
17
...\" distribution of the program constitutes recipient's acceptance of
20
...\" EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
21
...\" PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
22
...\" KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY
23
...\" WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
24
...\" OR FITNESS FOR A PARTICULAR PURPOSE
26
...\" EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
27
...\" NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT,
28
...\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29
...\" DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED
30
...\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31
...\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
32
...\" ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
33
...\" EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE
34
...\" POSSIBILITY OF SUCH DAMAGES.
38
.TH simple_drop 1X MOTIF "Demonstration programs"
40
\*Lsimple_drop\*O\(emDemonstrates how to add an XmNdestinationCallback to an XmDrawingArea widget
43
\*Lsimple_drop\*O \*V<pixmap_file>\*O
46
\*Lsimple_drop\*O illustrates how an application can add an
47
\*LXmNdestinationCallback\*O to an \*LXmDrawingArea\*O widget.
49
You must specify the name of a \*Vpixmap_file\*O as the only
50
argument to \*Lsimple_drop\*O. The specified \*Vpixmap_file\*O
51
will be displayed in the Label widget.
53
You should drag the pixmap from the Label widget and drop it in
54
the framed DrawingArea widget. The application extends the
55
DrawingArea widget so that it can act as the destination for a
56
pixmap transfer. After the pixmap has been successfully transferred,
57
it will be displayed inside the DrawingArea.
59
For details on the code, see Chapter 17 of the "OSF/Motif Programmer's