-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFFPUN.PAS
60 lines (51 loc) · 1.11 KB
/
FFPUN.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
unit ffpun;
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, ExtCtrls, ComCtrls;
type
Tffpfrm = class(TForm)
OKBtn: TButton;
CancelBtn: TButton;
PageControl1: TPageControl;
JPGSHT: TTabSheet;
jdccap: TLabel;
jpggreychk: TCheckBox;
Line1: TBevel;
encocap: TLabel;
jpgcled: TEdit;
jpgclud: TUpDown;
qlcap: TLabel;
jprogchk: TCheckBox;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
ffpfrm: Tffpfrm;
procedure ShowFFP;
implementation
uses dpemform;
procedure ShowFFP;
begin
with TFFPFrm.Create(Application) do
try
if ShowModal = mrOK then
begin
dpemform.JOutQual := jpgclud.Position;
dpemform.JGreyScale := jpgGreyChk.Checked;
dpemform.JProgressive := jprogchk.Checked;
end;
finally
Free;
end;
end;
{$R *.DFM}
procedure Tffpfrm.FormCreate(Sender: TObject);
begin
jpgGreyCHK.Checked := dpemform.JGreyScale;
jprogchk.Checked := dpemform.JProgressive;
jpgclud.Position := dpemform.JOutQual;
end;
end.