-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBTNZUN.PAS
57 lines (47 loc) · 1.23 KB
/
BTNZUN.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
unit btnzun;
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, ExtCtrls, ComCtrls,Registry;
type
Tbtneffdlg = class(TForm)
OKBtn: TButton;
CancelBtn: TButton;
Bevel: TBevel;
ewed: TEdit;
ewcap: TLabel;
ewud: TUpDown;
sechk: TCheckBox;
private
{ Private declarations }
public
{ Public declarations }
end;
var
btneffdlg: Tbtneffdlg;
function ShowBTNEff(var edge: integer; var smooth: boolean) :integer;
implementation
uses dpemform;
function ShowBTNEff(var edge: integer; var smooth: boolean) :integer;
begin
with TbtneffDLG.Create(Application) do
try
RegIniFile := TRegIniFile.Create(DPEIniName);
ewud.Position := RegIniFile.ReadInteger('Effects','BEdge',10);
sechk.Checked := RegIniFile.ReadBool('Effects','BSoftEdge',True);
RegIniFile.Free;
result := ShowModal;
if Result = mrOk then
begin
RegIniFile := TRegIniFile.Create(DPEIniName);
RegIniFile.WriteInteger('Effects','BEdge',ewud.Position);
RegIniFile.WriteBool('Effects','BSoftEdge',sechk.Checked);
RegIniFile.Free;
edge := ewud.Position;
smooth := sechk.Checked;
end;
finally
Free;
end;
end;
{$R *.DFM}
end.