004.htm
来自「Delphi书籍--Delphi网上教程」· HTM 代码 · 共 39 行
HTM
39 行
<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> 进入Delphi,选File|New File。出现文件类型选择,选New页面,点Application,选OK。出现设计状态下空白窗体Form1,点中控件工具页面的Additional页面,选中Image控件,将Im
age1加到Form1上。单击Image1,在对象观察器Object Inspector的Properties属性页面上设置Image1的Picture属性为一钟表形小图标,为美观起见设置Image1的AutoSize为True。在对象观察器的Events事件页面上选择OnMouseMove并双击,设置Image1的MouseMove事件(加下划线的部分是由用户输入的语句,其它由系统自动生成):
<br>
<br>
procedure TForm1.Image1MouseMove (Sender:TObject;Shift:TShiftState;X,Y:lnteger); <br>
begin <br>
Image1.ShowHint:=TRUE; <br>
Image1.hint:=‘现在时间’+TimeToStr(Time); <br>
end; <br>
end. </p>
<hr color="#EE9B73" size="1" width="94%">
</TD>
</TR>
</table>
</BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?