-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgressU.pas
More file actions
37 lines (29 loc) · 724 Bytes
/
ProgressU.pas
File metadata and controls
37 lines (29 loc) · 724 Bytes
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
unit ProgressU;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Buttons, JvExControls, JvComponent, JvLabel, StdCtrls;
type
TfrmProgress = class(TForm)
Label1: TLabel;
lblDirectory: TJvLabel;
SpeedButton1: TSpeedButton;
procedure SpeedButton1Click(Sender: TObject);
private
{ Private declarations }
FOnCancel: TNotifyEvent;
public
{ Public declarations }
published
property OnCancel: TNotifyEvent read FOnCancel write FOnCancel;
end;
var
frmProgress: TfrmProgress;
implementation
{$R *.dfm}
procedure TfrmProgress.SpeedButton1Click(Sender: TObject);
begin
if Assigned(FOnCancel) then
FOnCancel(Self);
end;
end.