-
Notifications
You must be signed in to change notification settings - Fork 3
/
PrintSelect.pas
85 lines (72 loc) · 1.7 KB
/
PrintSelect.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
unit PrintSelect;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, SBFiles,SBMain;
type
TFPrintSelect = class(TForm)
PCOHP: TCheckBox;
PCPrint: TCheckBox;
PCRec: TCheckBox;
PCAll: TCheckBox;
Label1: TLabel;
BOk: TButton;
BCancel: TButton;
PCBReport: TComboBox;
Label2: TLabel;
PCPhoto: TCheckBox;
PCBPreview: TCheckBox;
PCTrans: TCheckBox;
procedure PCAllClick(Sender: TObject);
procedure BCancelClick(Sender: TObject);
procedure BOkClick(Sender: TObject);
procedure FormActivate(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormShow(Sender: TObject);
private
{ Private declarations }
public
Result : boolean;
posX,posY : integer;
{ Public declarations }
end;
var
FPrintSelect: TFPrintSelect;
implementation
{$R *.DFM}
procedure TFPrintSelect.PCAllClick(Sender: TObject);
begin
PCOHP.Enabled:=not PCAll.Checked;
PCPrint.Enabled:=not PCAll.Checked;
PCRec.Enabled:=not PCAll.Checked;
PCPhoto.Enabled:=not PCAll.Checked;
PCTrans.Enabled:=not PCAll.Checked;
end;
procedure TFPrintSelect.BCancelClick(Sender: TObject);
begin
Result:=false;
SaveParams(INIFile);
close;
end;
procedure TFPrintSelect.BOkClick(Sender: TObject);
begin
Result:=true;
SaveParams(INIFile);
close;
end;
procedure TFPrintSelect.FormActivate(Sender: TObject);
begin
if PCBReport.ItemIndex=-1 then PCBReport.ItemIndex:=0;
end;
procedure TFPrintSelect.FormClose(Sender: TObject;
var Action: TCloseAction);
begin
posX:=left;
posY:=top;
end;
procedure TFPrintSelect.FormShow(Sender: TObject);
begin
top:=posY;
left:=posX;
end;
end.