📄 c++ builder 程序设计实用教程 - 9_1_1 使用剪贴板传输文本 - 张晋 - 17xie.htm
字号:
width=378>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face="Times New Roman" size=2>TOLEContainer<SPAN
style="mso-spacerun: yes">
</SPAN>TDDEServerItem</FONT></SPAN></P></TD></TR>
<TR style="HEIGHT: 10.8pt; mso-yfti-irow: 4; page-break-inside: avoid">
<TD
style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; BORDER-LEFT-COLOR: #ece9d8; PADDING-BOTTOM: 0cm; WIDTH: 131.25pt; BORDER-TOP-COLOR: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 10.8pt; BACKGROUND-COLOR: transparent; mso-border-bottom-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt"
width=175 rowSpan=2>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face="Times New Roman" size=2>CutToClipboard</FONT></SPAN></P></TD>
<TD
style="PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; BORDER-LEFT-COLOR: #ece9d8; PADDING-BOTTOM: 0cm; WIDTH: 283.45pt; BORDER-TOP-COLOR: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 10.8pt; BACKGROUND-COLOR: transparent; BORDER-RIGHT-COLOR: #ece9d8; mso-border-bottom-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt"
width=378>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face="Times New Roman" size=2>TDBEdit<SPAN
style="mso-spacerun: yes"> </SPAN>TDBMemo<SPAN
style="mso-spacerun: yes"> </SPAN>TDBImage
Tedit</FONT></SPAN></P></TD></TR>
<TR style="HEIGHT: 9.6pt; mso-yfti-irow: 5; page-break-inside: avoid">
<TD
style="PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; BORDER-LEFT-COLOR: #ece9d8; PADDING-BOTTOM: 0cm; WIDTH: 283.45pt; BORDER-TOP-COLOR: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 9.6pt; BACKGROUND-COLOR: transparent; BORDER-RIGHT-COLOR: #ece9d8; mso-border-bottom-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt"
width=378>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face="Times New Roman" size=2>Tmemo<SPAN style="mso-spacerun: yes">
</SPAN>TMaskEdit</FONT></SPAN></P></TD></TR>
<TR style="HEIGHT: 12pt; mso-yfti-irow: 6; page-break-inside: avoid">
<TD
style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; BORDER-LEFT-COLOR: #ece9d8; PADDING-BOTTOM: 0cm; WIDTH: 131.25pt; BORDER-TOP-COLOR: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 12pt; BACKGROUND-COLOR: transparent; mso-border-bottom-alt: solid windowtext 1.0pt; mso-border-top-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt"
width=175 rowSpan=2>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face="Times New Roman" size=2>PasteFromClipboard</FONT></SPAN></P></TD>
<TD
style="PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; BORDER-LEFT-COLOR: #ece9d8; PADDING-BOTTOM: 0cm; WIDTH: 283.45pt; BORDER-TOP-COLOR: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 12pt; BACKGROUND-COLOR: transparent; BORDER-RIGHT-COLOR: #ece9d8; mso-border-bottom-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt"
width=378>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face="Times New Roman" size=2>TDBEdit<SPAN
style="mso-spacerun: yes"> </SPAN>TDBMemo<SPAN
style="mso-spacerun: yes"> </SPAN>TDBImage</FONT></SPAN></P></TD></TR>
<TR
style="HEIGHT: 9pt; mso-yfti-irow: 7; page-break-inside: avoid; mso-yfti-lastrow: yes">
<TD
style="PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; BORDER-LEFT-COLOR: #ece9d8; PADDING-BOTTOM: 0cm; WIDTH: 283.45pt; BORDER-TOP-COLOR: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 9pt; BACKGROUND-COLOR: transparent; BORDER-RIGHT-COLOR: #ece9d8; mso-border-top-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt"
width=378>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face="Times New Roman" size=2>Tedit<SPAN style="mso-spacerun: yes">
</SPAN>Tmemo<SPAN style="mso-spacerun: yes">
</SPAN>TMaskEdit</FONT></SPAN></P></TD></TR></TBODY></TABLE></P>
<P class=a1 style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><STRONG><FONT
size=3>说明:</FONT></STRONG></SPAN></P>
<P class=a2 style="MARGIN: 0cm 21.25pt 0pt 42.5pt"><FONT
style="BACKGROUND-COLOR: #bfbfbf"><SPAN lang=EN-US
style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings"><SPAN
style="mso-list: Ignore">@<SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN></SPAN><SPAN
style="FONT-FAMILY: 楷体_GB2312; mso-ascii-font-family: 'Times New Roman'">除了</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">TDBImage</FONT></SPAN><SPAN
style="FONT-FAMILY: 楷体_GB2312; mso-ascii-font-family: 'Times New Roman'">外,其余全是有关文本的控件。</SPAN></FONT></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在把文本传输到剪贴板之前,文本必须被选中。</SPAN></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">若选</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">TMaskEdit</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">AutoSelect</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">属性为</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">True</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,则当</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">MaskEdit</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">获得输入焦点时文本自动被选中;若选</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">TEdit</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">TMemo</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">HideSelection</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">属性为</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">True</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,则失去焦点时,文本选中状态自动隐藏,重新获得焦点时再显示。</SPAN></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">下面的语句把</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">MaskEdit</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中选中的文本剪切到剪贴板:</SPAN></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face="Times New Roman">MaskEdit ->CutToClipboard;</FONT></SPAN></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">下面的语句把剪贴板中的文本粘贴到</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">Memo</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的当前光标处:</SPAN></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
face="Times New Roman">Memo->PasteFromClipboard</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;</SPAN></P>
<P class=MsoNormalIndent style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">利用剪贴板类也可以实现文本的传输,见下节内容中的介绍。</SPAN></P>
<P></P></DIV></CENTER>
<HR>
<SPAN id=theurl
style="FONT-SIZE: 12px">本页地址:http://www.17xie.com/read.php?pid=13712</SPAN>
</DIV>
<DIV id=read-title style="BORDER-TOP: white 1px solid">
<DIV
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FLOAT: right; PADDING-BOTTOM: 8px; PADDING-TOP: 8px">
<TABLE>
<TBODY>
<TR>
<TD><NOBR><SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=1'">|<</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=90'">上一页</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=88'">88</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=89'">89</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=90'">90</SPAN>
<SPAN class=page-here
onclick="window.location.href='/read.php?bid=303&seq=91'">91</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=92'">92</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=93'">93</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=94'">94</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=92'">下一页</SPAN>
<SPAN class=page-nor
onclick="window.location.href='/read.php?bid=303&seq=105'">>|</SPAN></NOBR>.</TD>
<TD><INPUT class=input-text
onkeydown='if(window.event.keyCode==13)window.location.href="/read.php?bid=303&seq="+this.value'
style="WIDTH: 25px"></TD>
<TD style="PADDING-TOP: 2px">[共105页]</TD></TR></TBODY></TABLE></DIV></DIV>
<DIV id=read-mpage>
<DIV
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 8px; PADDING-TOP: 8px; TEXT-ALIGN: center">[关注本页]
[在本页中加入书签] [收藏本书] [推荐本书] </DIV></DIV><!-- foot -->
<DIV id=xie_bottom><A class=xie1 href="http://www.17xie.com/help/help-wzjs.html"
target=_blank>关于我们</A> <SPAN class=xiefont1>| </SPAN><A class=xie1
href="http://www.17xie.com/help/index.html" target=_blank>帮助中心</A> <SPAN
class=xiefont1>| </SPAN><A class=xie1
href="http://www.17xie.com/help/help-wzjs.html#m6" target=_blank>版权声明</A> <SPAN
class=xiefont1>| </SPAN><A class=xie1
href="http://www.17xie.com/help/help-wzjs.html#m7" target=_blank>免责声明</A> <SPAN
class=xiefont1>| </SPAN><A class=xie1
href="http://www.17xie.com/help/help-wzjs.html#m8" target=_blank>联系我们</A> <SPAN
class=xiefont1>| </SPAN><A class=xie1
href="http://www.17xie.com/help/help-wzjs.html#m9" target=_blank>友情链接</A> <SPAN
class=xiefont1>| </SPAN><A class=xie1
href="http://www.17xie.com/bbs/show_bbs.php?fid=130"><FONT
color=red>提交意见</FONT></A> <BR>Copyright <SPAN
style="FONT-FAMILY: arial">©</SPAN> 2007 17xie.com 互联网协同写书平台<BR>
<SCRIPT language=javascript
src="C++ Builder 程序设计实用教程 - 9_1_1 使用剪贴板传输文本 - 张晋 - 17xie.files/1261343.js"
type=text/javascript></SCRIPT>
<NOSCRIPT><A href="http://www.51.la/?1261343" target=_blank><IMG
style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none"
alt=我要啦免费统计
src="C++ Builder 程序设计实用教程 - 9_1_1 使用剪贴板传输文本 - 张晋 - 17xie.files/go.htm"></A></NOSCRIPT>
</DIV></DIV>
<SCRIPT> setInterval("ajax_sr('/live.php','')",600000); function chcolor(sz) { $('read-conts').style.backgroundColor = sz; } function clcp() { var rng = document.body.createTextRange(); rng.moveToElementText(document.getElementById("theurl")); rng.execCommand("Copy"); } document.body.onkeydown = clcp; document.body.onmouseout = clcp; document.body.onclick = clcp; </SCRIPT>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -