...\" ** (c) Copyright 1993, 1994 Hewlett-Packard Company ...\" ** (c) Copyright 1993, 1994 International Business Machines Corp. ...\" ** (c) Copyright 1993, 1994 Sun Microsystems, Inc. ...\" ** (c) Copyright 1993, 1994 Novell, Inc ...\" ** ...\" ** ...\" ** ...\" ** (c) Copyright 1989, 1990, 1992 by Open Software Foundation, Inc. ...\" ** All Rights Reserved. ...\" ** ...\" ** (c) Copyright 1987, 1988, 1989, by Hewlett-Packard Company ...\" ** ...\" ** (c) Copyright 1988 by Massachusetts Institute of Technology ...\" ** ...\" ** (c) Copyright 1987, 1988 by Digital Equipment Corporation, ...\" ** Maynard, MA. All Rights Reserved. ...\" ** ...\" ** .TH XmClipboardInquireLength 3X "" "" "" "" .ds )H Hewlett-Packard Company .ds ]W Motif Release 1.2: May 1992 .SH NAME \fIXmClipboardInquireLength\fP \- A clipboard function that returns the length of the stored data .SH SYNOPSIS .nf .sS .iS \&#include \&#include .sp \n(PDu int \fIXmClipboardInquireLength\fI (\fBdisplay, window, format_name, length\fI) .ta .5i 1.5i .nf Display \fB* display\fI; Window \fBwindow\fI; char \fB* format_name\fI; unsigned long \fB* length\fI; .wH .fi .iE .sE .SH DESCRIPTION .fi \fIXmClipboardInquireLength\fP returns the length of the data stored under a specified format name for the clipboard data item. If no data is found for the specified format, or if there is no item on the clipboard, this function returns a value of zero. .PP Any format passed by name is assumed to have the \fBlength\fP passed in a call to \fIXmClipboardCopy\fP, even though the data has not yet been transferred to the clipboard in that format. .nL .ne 7 .IP "\fBdisplay\fP" Specifies a pointer to the \fIDisplay\fP structure that was returned in a previous call to \fIXOpenDisplay\fP or \fIXtDisplay\fP. .IP "\fBwindow\fP" Specifies a widget's window ID that relates the application window to the clipboard. The widget's window ID can be obtained by using \fIXtWindow\fP. The same application instance should pass the same window ID to each of the clipboard functions that it calls. .IP "\fBformat_name\fP" Specifies the name of the format for the data item. .IP "\fBlength\fP" Specifies the length of the next data item in the specified format. This argument equals zero if no data is found for the specified format, or if there is no item on the clipboard. .SH RETURN VALUE .IP "\fIClipboardSuccess\fP" The function is successful. .IP "\fIClipboardLocked\fP" The function failed because the clipboard was locked by another application. The application can continue to call the function again with the same parameters until the lock goes away. This gives the application the opportunity to ask if the user wants to keep trying or to give up on the operation. .IP "\fIClipboardNoData\fP" The function could not find data on the clipboard corresponding to the format requested. This could occur because the clipboard is empty; there is data on the clipboard but not in the requested format; or the data in the requested format was passed by name and is no longer available. .SH RELATED INFORMATION .na \fIXmClipboardCopy(3X)\fP and \fIXmClipboardStartCopy(3X)\fP. .ad