-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUFormViewOptionsImages.pas
93 lines (77 loc) · 1.83 KB
/
UFormViewOptionsImages.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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{$I ATViewerOptions.inc}
unit UFormViewOptionsImages;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TFormViewOptionsImages = class(TForm)
btnCancel: TButton;
btnOk: TButton;
boxIView: TGroupBox;
chkUseIView: TCheckBox;
edExeIView: TEdit;
btnBrowseExe: TButton;
labExeIView: TLabel;
labExtIView: TLabel;
edExtIView: TEdit;
chkPriority: TCheckBox;
OpenDialog1: TOpenDialog;
boxIJL: TGroupBox;
labExtIJL: TLabel;
chkUseIJL: TCheckBox;
edExtIJL: TEdit;
procedure FormShow(Sender: TObject);
procedure chkUseIViewClick(Sender: TObject);
procedure btnBrowseExeClick(Sender: TObject);
procedure chkUseIJLClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
implementation
uses
ATxMsgProc, ATViewerMsg;
{$R *.DFM}
procedure TFormViewOptionsImages.FormShow(Sender: TObject);
begin
{$I Lang.FormViewOptionsImages.inc}
{$ifndef IVIEW}
chkUseIView.Checked:= false;
chkUseIView.Enabled:= false;
{$endif}
{$ifndef IJL}
chkUseIJL.Checked:= false;
chkUseIJL.Enabled:= false;
{$endif}
chkUseIViewClick(Self);
chkUseIJLClick(Self);
end;
procedure TFormViewOptionsImages.chkUseIViewClick(Sender: TObject);
var
En: Boolean;
begin
En:= chkUseIView.Checked;
labExeIView.Enabled:= En;
edExeIView.Enabled:= En;
btnBrowseExe.Enabled:= En;
labExtIView.Enabled:= En;
edExtIView.Enabled:= En;
chkPriority.Enabled:= En;
end;
procedure TFormViewOptionsImages.btnBrowseExeClick(Sender: TObject);
begin
with OpenDialog1 do
if Execute then
edExeIView.Text:= FileName;
end;
procedure TFormViewOptionsImages.chkUseIJLClick(Sender: TObject);
var
En: Boolean;
begin
En:= chkUseIJL.Checked;
labExtIJL.Enabled:= En;
edExtIJL.Enabled:= En;
end;
end.