forked from transmission-remote-gui/transgui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
passwcon.pas
71 lines (49 loc) · 1.24 KB
/
passwcon.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
60
61
62
63
64
65
66
67
68
69
70
71
unit passwcon;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs, StdCtrls, ButtonPanel;
type
{ TPasswordConnect }
TPasswordConnect = class(TForm)
Buttons: TButtonPanel;
passw: TEdit;
lMsg: TLabel;
procedure CancelButtonClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure OKButtonClick(Sender: TObject);
procedure SetText(form : string; msg : string);
private
{ private declarations }
public
{ public declarations }
gPassw : string;
end;
var
PasswordConnect: TPasswordConnect;
implementation
uses main;
{ TPasswordConnect }
procedure TPasswordConnect.CancelButtonClick(Sender: TObject);
begin
end;
procedure TPasswordConnect.FormCreate(Sender: TObject);
begin
Buttons.OKButton.ModalResult:= mrNone;
bidiMode := GetBiDi;
gPassw := '';
passw.Text := '';
end;
procedure TPasswordConnect.OKButtonClick(Sender: TObject);
begin
gPassw:= passw.Text;
ModalResult:=mrOk;
end;
procedure TPasswordConnect.SetText(form : string; msg : string);
begin
lMsg.Caption := msg;
Caption := form;
end;
initialization
{$I passwcon.lrs}
end.