-
Notifications
You must be signed in to change notification settings - Fork 1
/
MsgUnit.pas
48 lines (36 loc) · 949 Bytes
/
MsgUnit.pas
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
unit MsgUnit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls, ComCtrls;
type
TMsgform = class( TForm )
Panel1: TPanel;
Panel2: TPanel;
CancelBut: TButton;
RichEdit1: TRichEdit;
Label2: TLabel;
procedure CancelButClick( Sender: TObject );
procedure FormCreate( Sender: TObject );
public
{ Public declarations }
FormInitialWidth: Integer;
ProgressBar2: TProgressBar;
end;
var
Msgform: TMsgform;
implementation
uses main;
{$R *.DFM}
procedure TMsgform.CancelButClick( Sender: TObject );
begin
if (MainForm.ZipMaster1.ZipBusy or MainForm.ZipMaster1.UnzBusy) then
MainForm.ZipMaster1.Cancel := True
else
Hide; { nothing to cancel - assume user wants to close msg window }
end;
procedure TMsgform.FormCreate( Sender: TObject );
begin
FormInitialWidth := MsgForm.Width;
end;
end.