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

📄 130.htm

📁 好书啊!很好哦
💻 HTM
字号:
<!-- saved from url=(0022)http://internet.e-mail -->
<html>
<head>
<title>滚动一个RichEdit                                  </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="inc.css">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="195434" alink="195434">

<table width="621" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
      <td width="621"><a href="http://www.CoDelphi.com"><img src="images/logo.gif" border="0" width="153" height="60"><img src="images/bigbanner.gif" border="0" width="468" height="60"></a></td>
    </tr>
  </table><br>
<br>
<table width="621" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td align="left" valign="top" class="font9" height="155"> 
      <div align="center" class="btitle">滚动一个RichEdit                                  <br>
        <br>
      </div>
      <div align="center"><strong>CoDelphi.com                                      </strong></div>
       
      <b><br>
       摘 要</b>:我如何滚动我的TRichEdit到末端?                    <br>
      <b> 关键字</b>:滚动richedit                                       <br>
      <b> 类 别</b>:用户界面                                           
      <hr size="1" width="100%">
      <span class="content">&nbsp&nbsp&nbsp&nbsp滚动richedit框有许多解决办法。<br><br>&nbsp&nbsp&nbsp&nbsp包括:<br><br>---不要使用这个例子&nbsp-&nbsp以下面一种代替---&nbsp<br>&nbsp&nbsp&nbsp&nbspwith&nbspMainFrm.RichEdit1&nbspdo&nbsp<br>&nbsp&nbsp&nbsp&nbspbegin&nbsp<br>&nbsp&nbsp&nbsp&nbsp&nbsp&nbspperform&nbsp(WM_VSCROLL,&nbspSB_BOTTOM,&nbsp0);&nbsp<br>&nbsp&nbsp&nbsp&nbsp&nbsp&nbspperform&nbsp(WM_VSCROLL,&nbspSB_PAGEUP,&nbsp0);&nbsp<br>&nbsp&nbsp&nbsp&nbspend;&nbsp<br>-------------------------------------------------&nbsp<br><br>&nbsp&nbsp&nbsp&nbsp上面的例子在win9x和NT4下工作很好,但下windows&nbsp2000下根本不工作,尽量不使用它。下面的例子在任何windows版本中都能很好运行:&nbsp<br><br>&nbsp&nbsp&nbsp&nbspwith&nbspMainFrm.RichEdit1&nbspdo&nbsp<br>&nbsp&nbsp&nbsp&nbspbegin&nbsp<br>&nbsp&nbsp&nbsp&nbsp&nbsp&nbspSelStart&nbsp:=&nbspLength(Text);&nbsp<br>&nbsp&nbsp&nbsp&nbsp&nbsp&nbspPerform(EM_SCROLLCARET,&nbsp0,&nbsp0);&nbsp<br>&nbsp&nbsp&nbsp&nbspend;&nbsp<br><br>&nbsp&nbsp&nbsp&nbsp如果你正在使用第一种形式,在你升级时请立即改掉它。当我的程序用户升级操作系统时我没这么做,使我头痛了好长时间。&nbsp<br>&nbsp<br><br></span> 
      <table border="0" cellspacing="0" cellpadding="1" class="font9" align="center" width="100%">
        <tr align="left" valign="middle" bgcolor="195434"> 
          <td height="1"></td>
        </tr>
      </table>
     
    </td>
  </tr>
  <tr> 
    <td bgcolor="#C9C9C6" height="2"></td>
  </tr>
</table>
<div align="center"><br>
  中文开发在线<a href="http://www.codelphi.com" target="_blank">www.codelphi.com</a>授权使用。
</div>
</body>
</html>

⌨️ 快捷键说明

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