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

📄 017.htm

📁 Delphi书籍--Delphi网上教程
💻 HTM
字号:
<HTML><HEAD><meta http-equiv="Content-Type" content="text/html; charset=GB2312"><TITLE>-->DELPHI专题--用户界面-->图形整体拉出效果</TITLE>
<META NAME="keywords" CONTENT=" DELPHI专题--用户界面 图形整体拉出效果">
<META NAME="description" CONTENT=" - DELPHI专题--用户界面 - 图形整体拉出效果">

<style>
<!--
#page {position:absolute; z-index:0; left:0px; top:0px}
.tt3 {font: 9pt/12pt "宋体"}
.tt2 {font: 12pt/15pt "宋体"}
a {text-decoration:none}
a:hover {color: blue;text-decoration:underline}
-->
</style>
</HEAD>
<a href="index1.html">返回</a>

<body text="#000000" aLink=#9900ff link=#006699 vLink=#006699 bgcolor="#FFFFFF" leftmargin="3" topmargin="3" marginheight="3" marginwidth="3">
<TABLE WIDTH="100%" CELLPADDING=10 CELLSPACING=0 BORDER=0>
<TR>

<TD class="tt2" bgcolor="#F5F8F8" width="84%"><center><B><FONT style="FONT-SIZE: 16.5pt" COLOR="#FF6666" FACE="楷体_GB2312">图形整体拉出效果</FONT></B></center>
<hr color="#EE9B73" size="1" width="94%">
<p>单纯的图形整体拉出效果比较简单,动态地改变图形区域的大小就可以实现,但事先应将图形的“Stretch”设置为“True”。<br>
  举例说明下拉效果:<br>
  1.在表单上放置一图片,高度为200,属性“Height”设为0,“Stretch”设置为True。添加“Timer”构件, 
“Interval”设为200,“Enable”设为Ture。<br> 
  2.在Timer1Timer中添加代码:<br>
  procedure TForm1.Timer1Timer(Sender: TObject);<br> 
  begin<br>
  Image1.Height:=Image1.Height+20;<br>
  //设置增量<br>
  if image1.Height=200 then Timer1.Enabled:=FALSE;<br> 
  //图形整体拉出完毕<br>
  end;<br>
  以上两例在Windows95,Delphi3.0环境下运行通过。</p>
<hr color="#EE9B73" size="1" width="94%">

</TD>

</TR>
</table>
</BODY></HTML>

⌨️ 快捷键说明

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