-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathqWelcome.pas
More file actions
63 lines (52 loc) · 1.32 KB
/
qWelcome.pas
File metadata and controls
63 lines (52 loc) · 1.32 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
unit qWelcome;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, lmdctrl, lmdstdcS;
type
TWelcome = class(TForm)
DeText: TLMDLabel;
Label1: TLabel;
GroupBox1: TGroupBox;
Label2: TLabel;
Label3: TLabel;
RegBtn: TRadioButton;
IniBtn: TRadioButton;
ProBtn: TButton;
Label4: TLabel;
LaterBtn: TButton;
ExistingBtn: TRadioButton;
procedure LaterBtnClick(Sender: TObject);
procedure ProBtnClick(Sender: TObject);
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Welcome: TWelcome;
implementation
uses qIRCMain;
{$R *.DFM}
procedure TWelcome.LaterBtnClick(Sender: TObject);
begin
If (Ask('Are you sure you want to cancel the setup of ' + IRCMain.APPNAME + '?')) Then
Begin
IRCMain.WData := '3';
End;
end;
procedure TWelcome.ProBtnClick(Sender: TObject);
begin
If (Self.RegBtn.Checked) Then
IRCMain.WData := '1';
If (Self.IniBtn.Checked) Then
IRCMain.WData := '0';
If (Self.ExistingBtn.Checked) Then
IRCMain.WData := '2';
end;
procedure TWelcome.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
begin
CanClose := False;
end;
end.