-
Notifications
You must be signed in to change notification settings - Fork 3
/
OHPPrint.pas
77 lines (61 loc) · 1.3 KB
/
OHPPrint.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
unit OHPPrint;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, StdCtrls;
type
TFPOHP = class(TForm)
RB1: TRadioButton;
RBA: TRadioButton;
BPrint: TButton;
BCancel: TButton;
procedure RBAClick(Sender: TObject);
procedure RB1Click(Sender: TObject);
procedure FormActivate(Sender: TObject);
procedure BCancelClick(Sender: TObject);
procedure BPrintClick(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormShow(Sender: TObject);
private
{ Private declarations }
public
Ok : boolean;
posX,posY : integer;
{ Public declarations }
end;
var
FPOHP: TFPOHP;
implementation
{$R *.DFM}
procedure TFPOHP.RBAClick(Sender: TObject);
begin
RB1.Checked:=false;
end;
procedure TFPOHP.RB1Click(Sender: TObject);
begin
RBa.Checked:=false;
end;
procedure TFPOHP.FormActivate(Sender: TObject);
begin
ok:=false;
end;
procedure TFPOHP.BCancelClick(Sender: TObject);
begin
close;
end;
procedure TFPOHP.BPrintClick(Sender: TObject);
begin
ok:=true;
close;
end;
procedure TFPOHP.FormClose(Sender: TObject; var Action: TCloseAction);
begin
posX:=left;
posY:=top;
end;
procedure TFPOHP.FormShow(Sender: TObject);
begin
top:=posY;
left:=posX;
end;
end.