-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdata_memo_unit.pas
More file actions
108 lines (75 loc) · 3.09 KB
/
data_memo_unit.pas
File metadata and controls
108 lines (75 loc) · 3.09 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
(*
================================================================================
This file is part of OpenTemplot2024, a computer program for the design of model railway track.
Copyright (C) 2024 Martin Wynne. email: martin@85a.uk
This program is free software: you may redistribute it and/or modify
it under the terms of the GNU General Public Licence as published by
the Free Software Foundation, either version 3 of the Licence, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public Licence for more details.
You should have received a copy of the GNU General Public Licence
along with this program. See the file: licence.txt
Or if not, refer to the web site: https://www.gnu.org/licenses/
================================================================================
This file was saved from Delphi5
This file was derived from Templot2 version 244e
*)
unit data_memo_unit;
{$MODE Delphi}
{$ALIGN OFF}
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Clipbrd,
StdCtrls;
type
Tdata_child_form = class(TForm)
data_memo: TMemo;
copy_all_button: TButton;
procedure FormCreate(Sender: TObject);
procedure FormResize(Sender: TObject);
procedure copy_all_buttonClick(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
{ Public declarations }
end;
var
data_child_form: Tdata_child_form;
implementation
uses pad_unit,switch_select;
{$R *.lfm}
//______________________________________________________________________________
procedure Tdata_child_form.FormCreate(Sender: TObject);
begin
pad_form.InsertControl(data_child_form);
AutoScroll:=False;
ClientWidth:=570;
ClientHeight:=570;
end;
//______________________________________________________________________________
procedure Tdata_child_form.FormResize(Sender: TObject);
begin
copy_all_button.Left:=ClientWidth-copy_all_button.Width-30;
data_memo.Width:=ClientWidth;
data_memo.Height:=ClientHeight-data_memo.Top;
end;
//______________________________________________________________________________
procedure Tdata_child_form.copy_all_buttonClick(Sender: TObject);
begin
Clipboard.AsText:=data_memo.Text;
end;
//______________________________________________________________________________
procedure Tdata_child_form.FormClose(Sender: TObject; var Action: TCloseAction);
begin
switch_info_showing:=False; // added 208a
switch_select_form.show_info_button.Caption:='show switch info';
switch_select_form.ClientWidth:=switch_select_form.datestamp_label.Width;
switch_select_form.ClientHeight:=switch_select_form.datestamp_label.Top+switch_select_form.datestamp_label.Height; // 211b // added 208a
switch_select_form.AutoScroll:=False;
end;
//______________________________________________________________________________
end.