-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheditlsp.pas
59 lines (46 loc) · 1.5 KB
/
editlsp.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
(*----------------------------------------------------------------------------*)
(* Property editor for TLispExpression. *)
(* Author: Joachim Pimiskern; 1994-2004 *)
(*----------------------------------------------------------------------------*)
unit Editlsp;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Buttons;
type
TFormEditExpression = class(TForm)
Memo: TMemo;
GroupBox: TGroupBox;
ButtonOK: TBitBtn;
ButtonCancel: TBitBtn;
procedure ButtonOKClick(Sender: TObject);
procedure ButtonCancelClick(Sender: TObject);
procedure FormResize(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
implementation
{$R *.DFM}
procedure TFormEditExpression.ButtonOKClick(Sender: TObject);
begin
ModalResult := mrOK;
end;
procedure TFormEditExpression.ButtonCancelClick(Sender: TObject);
begin
ModalResult := mrCancel;
end;
procedure TFormEditExpression.FormResize(Sender: TObject);
begin
Memo.Width := Width - 40;
Memo.Left := 20;
Memo.Top := 20;
Memo.Height := Height - 140;
GroupBox.Width := Width - 40;
GroupBox.Left := 20;
GroupBox.Top := Height - 100;
ButtonOK . Left := Width div 2 - 10 - ButtonOk.Width - GroupBox.Left;
ButtonCancel . Left := Width div 2 + 10 - GroupBox.Left;
end;
end.