-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathLinkDesc.pas
56 lines (45 loc) · 976 Bytes
/
LinkDesc.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
unit LinkDesc;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TFLinkDesc = class(TForm)
EDescription: TEdit;
BOK: TButton;
BCancel: TButton;
LDescription: TLabel;
procedure BCancelClick(Sender: TObject);
procedure FormActivate(Sender: TObject);
procedure BOKClick(Sender: TObject);
procedure FormShow(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
posX,posY : integer;
Description : string;
end;
var
FLinkDesc: TFLinkDesc;
implementation
{$R *.DFM}
procedure TFLinkDesc.BCancelClick(Sender: TObject);
begin
close;
end;
procedure TFLinkDesc.FormActivate(Sender: TObject);
begin
EDescription.Text:=Description;
end;
procedure TFLinkDesc.BOKClick(Sender: TObject);
begin
Description:=EDescription.Text;
close;
end;
procedure TFLinkDesc.FormShow(Sender: TObject);
begin
top:=posY;
left:=posX;
end;
end.