Delphi实现QQ右下角弹出信息窗口


本文整理自网络,侵删。

  

unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls;

type
TForm1 = class(TForm)
Button1: TButton;
Timer1: TTimer;
procedure Button1Click(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
private
PopForm:TForm;
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
PopForm:=TForm.Create(self);
PopForm.Width:=200;
PopForm.Height:=150;
PopForm.Name:='PopForm1';
PopForm.Left:=screen.Width-PopForm.Width;
PopForm.Top:=screen.Height;
PopForm.Show;
Timer1.Interval:=200;
Timer1.Enabled:=True;
end;

procedure TForm1.Timer1Timer(Sender: TObject);
begin
PopForm.Top:=PopForm.Top-10;
if PopForm.Top<screen.Height-PopForm.Height then
begin
Timer1.Enabled:=False;
PopForm.Free;
end;
end;

//需要说明的是只要触发按钮的单击事件 就可显示信息

相关阅读 >>

Delphi 获取任意月份总共有多少天数

Delphi的webbrowser改造,对网页中alter等对话框的改造方法

Delphi 将listview保存为txt

tidtcpclient控件中文指南

Delphi 通过进程id获取进程名

Delphi dbgrid上设置选择项

Delphi hmacsha256

Delphi 小数点四舍五入问题

Delphi获取开机时间代码

Delphi 为richedit设置行号

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...