-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFormMessageBox.pas
More file actions
78 lines (64 loc) · 1.98 KB
/
Copy pathFormMessageBox.pas
File metadata and controls
78 lines (64 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
unit FormMessageBox;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, BaseFormMain, AppEvnts, Menus, GIFImg, OleCtrls, SHDocVw, ExtCtrls,
StdCtrls, RzPanel, ImgList;
type
TfrmMessageBox = class(TfrmBaseMain)
procedure FormCreate(Sender: TObject);
procedure imgMinClick(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormDestroy(Sender: TObject);
procedure FormActivate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmMessageBox: TfrmMessageBox;
implementation
uses FunctionCommon, SystemConfig;
{$R *.dfm}
{*******************************************************************************}
procedure TfrmMessageBox.FormActivate(Sender: TObject);
begin
inherited;
OnActivate:=nil;
FlashWindow(Handle, True);
end;
procedure TfrmMessageBox.FormClose(Sender: TObject; var Action: TCloseAction);
begin
inherited;
FreeAndNil(frmMessageBox);
end;
{*******************************************************************************}
procedure TfrmMessageBox.FormCreate(Sender: TObject);
begin
wbBase.Navigate(DEF_URL_MSG);
end;
{*******************************************************************************}
procedure TfrmMessageBox.FormDestroy(Sender: TObject);
begin
//不继承窗体销毁
end;
{*******************************************************************************}
procedure TfrmMessageBox.FormShow(Sender: TObject);
begin
inherited;
Width:= DEF_FORM_MSG_WIDTH;
Height:= DEF_FORM_MSG_HEIGHT;
SetPosition;
Caption:=GBL_SYS_APPNAME + '消息盒子 - '+ USER_NAME;
lblTitleBase.Caption:=Caption;
end;
{*******************************************************************************}
procedure TfrmMessageBox.imgMinClick(Sender: TObject);
begin
//WindowState:= wsMinimized;
Hide;
end;
{*******************************************************************************}
end.