⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c++ builder 程序设计实用教程 - 2_4 文本备忘录组件 - 张晋 - 17xie.htm

📁 已经消失的不易找到的C++ builder网络教程总结
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0044)http://www.17xie.com/read.php?bid=303&seq=17 -->
<HTML 
xmlns:o><HEAD><TITLE>C++ Builder 程序设计实用教程 - 2.4 文本备忘录组件 - 张晋 - 17xie</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK 
href="C++ Builder 程序设计实用教程 - 2_4 文本备忘录组件 - 张晋 - 17xie.files/17xie.css" 
type=text/css rel=stylesheet><LINK 
href="C++ Builder 程序设计实用教程 - 2_4 文本备忘录组件 - 张晋 - 17xie.files/read.css" 
type=text/css rel=stylesheet>
<SCRIPT src="C++ Builder 程序设计实用教程 - 2_4 文本备忘录组件 - 张晋 - 17xie.files/core.js" 
type=text/javascript></SCRIPT>

<SCRIPT src="C++ Builder 程序设计实用教程 - 2_4 文本备忘录组件 - 张晋 - 17xie.files/iframe.js" 
type=text/javascript></SCRIPT>

<SCRIPT src="C++ Builder 程序设计实用教程 - 2_4 文本备忘录组件 - 张晋 - 17xie.files/dialog.js" 
type=text/javascript></SCRIPT>

<SCRIPT src="C++ Builder 程序设计实用教程 - 2_4 文本备忘录组件 - 张晋 - 17xie.files/ajax.js" 
type=text/javascript></SCRIPT>

<SCRIPT src="C++ Builder 程序设计实用教程 - 2_4 文本备忘录组件 - 张晋 - 17xie.files/cookie.js" 
type=text/javascript></SCRIPT>

<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY>
<DIV id=m-body>
<DIV id=read-top>
<DIV style="FLOAT: left"><A href="http://www.17xie.com/" target=_blank><IMG 
src="C++ Builder 程序设计实用教程 - 2_4 文本备忘录组件 - 张晋 - 17xie.files/booklogo.gif"></A></DIV>
<DIV id=read-menu><NOBR><A 
onclick="APIframe.open('快速登录','/m/user/poplogin.php',400,160)" 
href="javascript:void(0)">登录</A> <A 
onclick="APIframe.open('17xie-快速注册','/m/user/reg.php',480,460)" 
href="javascript:void(0)">注册</A> | <A href="http://www.17xie.com/" 
target=_blank>首页</A> <A href="http://www.17xie.com/bbs/index.php?ishow=y" 
target=_blank>论坛</A> <A href="http://www.17xie.com/user.php" 
target=_blank>会员中心</A> <A href="http://www.17xie.com/help/" 
target=_blank>帮助</A></NOBR></DIV></DIV>
<DIV id=read-title>
<DIV 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FLOAT: left; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><A 
href="http://www.17xie.com/" target=_blank>17xie</A> &gt; <A 
href="http://www.17xie.com/book.php?bid=303">C++ Builder 程序设计实用教程</A> &gt; 2.4 
文本备忘录组件</DIV>
<DIV 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FLOAT: right; PADDING-BOTTOM: 0px; PADDING-TOP: 4px"><INPUT class=button-red8 onclick="window.location.href='/m/book/write.php?pid=5524'" type=button value=点击编辑本页></DIV></DIV>
<DIV id=read-mpage>
<DIV 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FLOAT: left; PADDING-BOTTOM: 8px; PADDING-TOP: 8px">背景: 
<SPAN class=chcolor style="BACKGROUND-COLOR: #eeeeff" 
onclick="chcolor('#eeeeff')">&nbsp;&nbsp;</SPAN> <SPAN class=chcolor 
style="BACKGROUND-COLOR: #ffeeee" 
onclick="chcolor('#ffeeee')">&nbsp;&nbsp;</SPAN> <SPAN class=chcolor 
style="BACKGROUND-COLOR: #eeffee" 
onclick="chcolor('#eeffee')">&nbsp;&nbsp;</SPAN> <SPAN class=chcolor 
style="BACKGROUND-COLOR: #ffffee" 
onclick="chcolor('#ffffee')">&nbsp;&nbsp;</SPAN> <SPAN class=chcolor 
style="BACKGROUND-COLOR: #eeeeee" 
onclick="chcolor('#eeeeee')">&nbsp;&nbsp;</SPAN> <SPAN class=chcolor 
style="BACKGROUND-COLOR: #ffffff" 
onclick="chcolor('#ffffff')">&nbsp;&nbsp;</SPAN> </DIV>
<DIV 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FLOAT: right; PADDING-BOTTOM: 0px; PADDING-TOP: 3px">
<TABLE>
  <TBODY>
  <TR>
    <TD><NOBR><SPAN class=page-nor 
      onclick="window.location.href='/read.php?bid=303&amp;seq=1'">|&lt;</SPAN> 
      <SPAN class=page-nor 
      onclick="window.location.href='/read.php?bid=303&amp;seq=16'">上一页</SPAN> 
      <SPAN class=page-nor 
      onclick="window.location.href='/read.php?bid=303&amp;seq=14'">14</SPAN> 
      <SPAN class=page-nor 
      onclick="window.location.href='/read.php?bid=303&amp;seq=15'">15</SPAN> 
      <SPAN class=page-nor 
      onclick="window.location.href='/read.php?bid=303&amp;seq=16'">16</SPAN> 
      <SPAN class=page-here 
      onclick="window.location.href='/read.php?bid=303&amp;seq=17'">17</SPAN> 
      <SPAN class=page-nor 
      onclick="window.location.href='/read.php?bid=303&amp;seq=18'">18</SPAN> 
      <SPAN class=page-nor 
      onclick="window.location.href='/read.php?bid=303&amp;seq=19'">19</SPAN> 
      <SPAN class=page-nor 
      onclick="window.location.href='/read.php?bid=303&amp;seq=20'">20</SPAN> 
      <SPAN class=page-nor 
      onclick="window.location.href='/read.php?bid=303&amp;seq=18'">下一页</SPAN> 
      <SPAN class=page-nor 
      onclick="window.location.href='/read.php?bid=303&amp;seq=105'">&gt;|</SPAN></NOBR>.</TD>
    <TD><INPUT class=input-text 
      onkeydown='if(window.event.keyCode==13)window.location.href="/read.php?bid=303&amp;seq="+this.value' 
      style="WIDTH: 25px"></TD>
    <TD style="PADDING-TOP: 2px">[共105页]</TD></TR></TBODY></TABLE></DIV></DIV>
<DIV id=read-conts style="BACKGROUND-COLOR: #ffffff"><SPAN 
style="FONT-SIZE: 12px">本页字数:10164&nbsp;&nbsp;&nbsp;&nbsp;最后更新:<NOBR>12天以前</NOBR> 
<NOBR>[11-30 11:28]</NOBR> 由 <A onclick='$showu(1271,"张晋")' 
href="javascript:void(0)">张晋</A> 编辑&nbsp;&nbsp;&nbsp;&nbsp;<A class=aline 
style="COLOR: red" href="http://www.17xie.com/m/user/inviter_reg.php" 
target=_blank>注册17xie 一起来写书 实现您的出书梦想!</A></SPAN> 
<HR>

<CENTER>
<DIV style="WIDTH: 547px; TEXT-ALIGN: left">
<DIV class=Section1 style="LAYOUT-GRID:  15.6pt none">
<H2><A name=_Toc502915185></A><A name=_Toc392379918><SPAN 
style="mso-bookmark: _Toc502915185"><SPAN lang=EN-US>2.4<SPAN 
style="mso-spacerun: yes">&nbsp; </SPAN></SPAN></SPAN></A><SPAN 
style="mso-bookmark: _Toc392379918"><SPAN 
style="mso-bookmark: _Toc502915185"><SPAN 
style="FONT-FAMILY: 楷体_GB2312; mso-ascii-font-family: 'Times New Roman'">文本备忘录组件</SPAN></SPAN></SPAN></H2>
<P class=MsoNormalIndent><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在</SPAN><SPAN 
lang=EN-US>CBuilder 5</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中</SPAN><SPAN 
lang=EN-US>Memo</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">组件的主要作用是显示指定的文本,在使用的过程中,它可以用做文本显示的容器,用于接收用户的输入,同时还可以显示指定的文本文件,所以在一定的程度上,</SPAN><SPAN 
lang=EN-US>Memo</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">组件还可以用做文本文件的处理,它的图标如图</SPAN><SPAN 
lang=EN-US>2-12</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">所示。</SPAN></P>
<P class=a><SPAN lang=EN-US><IMG height=31 
src="C++ Builder 程序设计实用教程 - 2_4 文本备忘录组件 - 张晋 - 17xie.files/1146c5418d.jpg" 
width=31 v:shapes="_x0000_i1025"></SPAN></P>
<P class=MsoCaption><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">图</SPAN><SPAN 
lang=EN-US>2-12<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Memo</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">组件图标</SPAN></P>
<P class=MsoNormalIndent><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">下面我们就以</SPAN><SPAN 
lang=EN-US>Memo</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">组件为例来说明在</SPAN><SPAN 
lang=EN-US>CBuilder 5</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中如何进行文本文件的简单处理操作,这个示例程序所能够实现的功能如下所示:</SPAN></P>
<P class=MsoNormal 
style="MARGIN-LEFT: 42.5pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l0 level1 lfo1"><SPAN 
lang=EN-US 
style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings"><SPAN 
style="mso-list: Ignore">n<SPAN 
style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">可以打开一个典型的文本文件,用户可以在程序运行的过程中选择文件的路径和文件名;</SPAN></P>
<P class=MsoNormal 
style="MARGIN-LEFT: 42.5pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l0 level1 lfo1"><SPAN 
lang=EN-US 
style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings"><SPAN 
style="mso-list: Ignore">n<SPAN 
style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">进行简单的文本编辑后,可以把修改结果保存到一个文本文件中;</SPAN></P>
<P class=MsoNormal 
style="MARGIN-LEFT: 42.5pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l0 level1 lfo1"><SPAN 
lang=EN-US 
style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings"><SPAN 
style="mso-list: Ignore">n<SPAN 
style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">可以为</SPAN><SPAN 
lang=EN-US>Memo</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">组件中的显示文本选择合适的字体;</SPAN></P>
<P class=MsoNormal 
style="MARGIN-LEFT: 42.5pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l0 level1 lfo1"><SPAN 
lang=EN-US 
style="FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings"><SPAN 
style="mso-list: Ignore">n<SPAN 
style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN></SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">可以为</SPAN><SPAN 
lang=EN-US>Memo</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">组件选择合适的背景色。</SPAN></P>
<P class=MsoNormalIndent><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">一个典型的颜色设置对话框如图</SPAN><SPAN 
lang=EN-US>2-13</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">所示。</SPAN></P>
<P class=a><SPAN lang=EN-US><IMG height=230 
src="C++ Builder 程序设计实用教程 - 2_4 文本备忘录组件 - 张晋 - 17xie.files/814bad5afd.jpg" 
width=172 v:shapes="_x0000_i1026"></SPAN></P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -