请问如何让弹出窗体像QQ一样慢慢从屏幕右上角向下展开??? 要保证每次在不同机器上都是从屏幕右上角开始展开?! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你用个Timer不就可以实现了吗? 我收集过一个人家写的控件,可以参考一下:unit EaPopup;interfaceuses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,PoPoMsg;type TEaPopup = class(TComponent) private { Private declarations } FPopMsg: TPoPMsg; FTitle: string; FMessages: string; FStayTime: Integer; procedure SetStayTime(const Value: Integer); protected { Protected declarations } public { Public declarations } constructor Create(AOwner: TComponent);override; procedure PopUp;overload; procedure PopUp(const msgTitle, msg: string; msgStayTime:Integer);overload; published { Published declarations } property Title: string read FTitle write FTitle; property Messages: string read FMessages write FMessages; property StayTime: Integer read FStayTime write SetStayTime; end;procedure Register;implementationprocedure Register;begin RegisterComponents('EaPack', [TEaPopup]);end;{ TEaPopup }procedure TEaPopup.PopUp;begin PopUp(FTitle,Messages,FStayTime);end;constructor TEaPopup.Create(AOwner: TComponent);begin inherited; FTitle := '消息'; FMessages := 'Easoft Popup'; FStayTime := 5;end;procedure TEaPopup.PopUp(const msgTitle, msg: string; msgStayTime:Integer);begin if Assigned(FPoPMsg) then FreeAndNil(FPopMsg); FPopMsg := TPoPMsg.Create(Self); with FPopMsg do begin Title.Caption := msgTitle; MessageText.Caption := msg; StayTime := msgStayTime; if StayTime < 1 then StayTime := 5; ScrollShow; end;end;procedure TEaPopup.SetStayTime(const Value: Integer);begin FStayTime := Value; if FStayTime <1 then FStayTime := 5;end;end. 求ImageEn for Delphi2010下载 谁能给个SQL2000的数据库分页方法 支持delphi的INSTALLSHIELD 的最好的版本是什么 dephi 中ado控件执行如何得到sql错误信息! String到Pchar的转换! 关于QuickReport的打印问题! 大家帮帮我。很简单的。看看就行了 关于软件中读取图片的问题? 怎样定义一个在所有窗口中都能调用的全局变量? 用Delphi本身的控件如何使Docking的ToolBar成为ToolWindow? 如何删除流Stream中的0字符(ASCII码为0)? 太复杂了,请各位高人帮忙解决一下。
unit EaPopup;interfaceuses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,PoPoMsg;type
TEaPopup = class(TComponent)
private
{ Private declarations }
FPopMsg: TPoPMsg;
FTitle: string;
FMessages: string;
FStayTime: Integer;
procedure SetStayTime(const Value: Integer);
protected
{ Protected declarations }
public
{ Public declarations }
constructor Create(AOwner: TComponent);override;
procedure PopUp;overload;
procedure PopUp(const msgTitle, msg: string; msgStayTime:Integer);overload;
published
{ Published declarations }
property Title: string read FTitle write FTitle;
property Messages: string read FMessages write FMessages;
property StayTime: Integer read FStayTime write SetStayTime;
end;procedure Register;implementationprocedure Register;
begin
RegisterComponents('EaPack', [TEaPopup]);
end;{ TEaPopup }
procedure TEaPopup.PopUp;
begin
PopUp(FTitle,Messages,FStayTime);
end;constructor TEaPopup.Create(AOwner: TComponent);
begin
inherited;
FTitle := '消息';
FMessages := 'Easoft Popup';
FStayTime := 5;
end;procedure TEaPopup.PopUp(const msgTitle, msg: string; msgStayTime:Integer);
begin
if Assigned(FPoPMsg) then
FreeAndNil(FPopMsg);
FPopMsg := TPoPMsg.Create(Self);
with FPopMsg do
begin
Title.Caption := msgTitle;
MessageText.Caption := msg;
StayTime := msgStayTime;
if StayTime < 1 then
StayTime := 5;
ScrollShow;
end;
end;
procedure TEaPopup.SetStayTime(const Value: Integer);
begin
FStayTime := Value;
if FStayTime <1 then
FStayTime := 5;
end;
end.