home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_f435cae4e33eda9feaceec28a494fb08
< prev
next >
Wrap
Text File
|
2000-03-23
|
4KB
|
100 lines
<HTML>
<HEAD>
<TITLE>Tk::clipboard - Manipulate Tk clipboard</TITLE>
<LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
<LINK REV="made" HREF="mailto:">
</HEAD>
<BODY>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> Tk::clipboard - Manipulate Tk clipboard</P></STRONG>
</TD></TR>
</TABLE>
<A NAME="__index__"></A>
<!-- INDEX BEGIN -->
<UL>
<LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
<LI><A HREF="#description">DESCRIPTION</A></LI>
<LI><A HREF="#keywords">KEYWORDS</A></LI>
</UL>
<!-- INDEX END -->
<HR>
<P>
<H1><A NAME="name">NAME</A></H1>
<P>Tk::clipboard - Manipulate Tk clipboard</P>
<P>
<HR>
<H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
<UL>
<LI>Linux</LI>
<LI>Solaris</LI>
<LI>Windows</LI>
</UL>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<P><EM>$widget</EM>-><STRONG>clipboard</STRONG><EM>Option</EM>?(<EM>args</EM>)?</P>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P>This command provides an interface to the Tk clipboard,
which stores data for later retrieval using the selection mechanism.
In order to copy data into the clipboard, <STRONG>clipboardClear</STRONG> must
be called, followed by a sequence of one or more calls to
<STRONG>clipboardAppend</STRONG>. To ensure that the clipboard is updated atomically, all
appends should be completed before returning to the event loop.</P>
<P>The following methods are currently supported:</P>
<DL>
<DT><STRONG><A NAME="item_clipboardClear"><EM>$widget</EM>-><STRONG>clipboardClear</STRONG></A></STRONG><BR>
<DD>
Claims ownership of the clipboard on <EM>$widget</EM>'s display and removes
any previous contents. Returns an empty string.
<P></P>
<DT><STRONG><A NAME="item_clipboardAppend"><EM>$widget</EM>-><STRONG>clipboardAppend</STRONG>(?<STRONG>-format</STRONG>=><EM>format</EM>?,?<STRONG>-type</STRONG>=><EM>type</EM>?,?<STRONG>--</STRONG>?,<EM>data</EM>)</A></STRONG><BR>
<DD>
Appends <EM>data</EM> to the clipboard on $widget's
display in the form given by <EM>type</EM> with the representation given
by <EM>format</EM> and claims ownership of the clipboard on $widget's
display.
<P><EM>Type</EM> specifies the form in which the selection is to be returned
(the desired ``target'' for conversion, in ICCCM terminology), and
should be an atom name such as STRING or FILE_NAME; see the
Inter-Client Communication Conventions Manual for complete details.
<EM>Type</EM> defaults to STRING.</P>
<P>The <EM>format</EM> argument specifies the representation that should be
used to transmit the selection to the requester (the second column of
Table 2 of the ICCCM), and defaults to STRING. If <EM>format</EM> is
STRING, the selection is transmitted as 8-bit ASCII characters.
See the <A HREF="../../../Tk/Selection.html">the Tk::Selection manpage</A> documentation for explanation of what happens
if <EM>format</EM> is not STRING.
Note that arguments passed to
<STRONG>clipboardAppend</STRONG> are concatenated before conversion, so the
caller must take care to ensure appropriate spacing across string
boundaries. All items appended to the clipboard with the same
<EM>type</EM> must have the same <EM>format</EM>.</P>
<P>A <STRONG>--</STRONG> argument may be specified to mark the end of options: the
next argument will always be used as <EM>data</EM>.
This feature may be convenient if, for example, <EM>data</EM> starts
with a <STRONG>-</STRONG>.</P>
</DL>
<P>
<HR>
<H1><A NAME="keywords">KEYWORDS</A></H1>
<P>clear, format, clipboard, append, selection, type</P>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> Tk::clipboard - Manipulate Tk clipboard</P></STRONG>
</TD></TR>
</TABLE>
</BODY>
</HTML>