-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathugedtext.pas
58 lines (42 loc) · 916 Bytes
/
ugedtext.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
// Copyright 2020, Kaj Mikkelsen
// This software is distributed under the GPL 3 license
// The full text of the license can be found in the aboutbox
// as well as in the file "Copying"
unit UGedText;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls;
type
{ TFText }
TFText = class(TForm)
ExitButton: TButton;
Label1: TLabel;
Label2: TLabel;
Memo1: TMemo;
procedure ExitButtonClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
private
public
end;
var
FText: TFText;
implementation
uses
MyLib;
{$R *.lfm}
{ TFText }
procedure TFText.FormCreate(Sender: TObject);
begin
RestoreForm(FText);
end;
procedure TFText.ExitButtonClick(Sender: TObject);
begin
Close;
end;
procedure TFText.FormDestroy(Sender: TObject);
begin
SaveForm(FText);
end;
end.