使用一个timer 控件你不打算给分?
解决方案 »
- delphi能否利用flash activx控件调用flash中的函数
- 播放MP3,声音变小变大停止
- 怎样读取十六进制文件???
- 如何用fastreport与query实现报表的设计呀?
- Delphi可以单独运行其中的一个窗体吗?
- 急!用ClientDataSet的CommandText怎么改变服务器端的数据集?
- 如何用SQLConfigDataSource函数建一个带密码的Access文件?
- 在运行状态下如何找出一个类有哪些方法?
- 大家由没有碰到这样的问题?
- 我从MSSQLSERVER上COPY一个DB到C:\打开时汉字显示####,我该如何解决
- 调查:你用数据感知控件吗?(回答精辟者高分相送)
- 如何在运行时退出整个运行程序??
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls;type
TForm1 = class(TForm)
Button1: TButton;
Timer1: TTimer;
procedure Button1Click(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;
ls:integer;implementationuses Unit2;{$R *.DFM}procedure TForm1.Button1Click(Sender: TObject);
begin
form2.show;
ls:=0;
timer1.enabled:=true;
end;procedure TForm1.Timer1Timer(Sender: TObject);
begin
if ls<=10 then
ls:=ls+1
else
begin
form2.close;
timer1.enabled:=false;
end;
end;end.
procedure TForm1.Button1Click(Sender: TObject);
begin
APPLICATION.CREATEFORM(TFORM2,FORM2);
form2.showMODAL;
SLEEP(10000);
FORM2.FREE;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
form2.show;
SLEEP(10000);
FORM2.close;//或FOMR2.FREE;
end;
没试过
ProcedureTMainForm.FormCreate(Sender:TObject);
begin
Application.HintPause:0;{使文本提示盒立即出现}
Application.HintPause:clBlue;{以蓝色小方框的方式出现}
Application.HintHidePause:10000;{延长停留时间为10秒}
Application.HintShortPause:100;
end;
将修改后的Forms.pas存盘,然后重建库文件,以后在你的库文件里,类TApplication就多了一个属性HintFont,你就可以很轻易的通过HintFont属性来修改文本提示盒的字 体、字型大小了,如以下一段程序: ProcedureTMainForm.FormCreate(Sender:TObject);
Var
NewHintFont:TFont.Create;
begin
NewHintFont:TFont.Create;
NewHintFont.Name:′楷体-GB2312′;{设置字体为楷体}
NewHintFont.Size:12;{设置字型大小为12}
Application.HintFont:NewHintFont;
end;