/[projects]/dao/DelphiScanner/Components/tpsystools_4.04/examples/Delphi/EXUSRMG3.pas
ViewVC logotype

Contents of /dao/DelphiScanner/Components/tpsystools_4.04/examples/Delphi/EXUSRMG3.pas

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2671 - (show annotations) (download)
Tue Aug 25 18:15:15 2015 UTC (8 years, 9 months ago) by torben
File size: 1856 byte(s)
Added tpsystools component
1 (* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1
3 *
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
8 *
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
12 * License.
13 *
14 * The Original Code is TurboPower SysTools
15 *
16 * The Initial Developer of the Original Code is
17 * TurboPower Software
18 *
19 * Portions created by the Initial Developer are Copyright (C) 1996-2002
20 * the Initial Developer. All Rights Reserved.
21 *
22 * Contributor(s):
23 *
24 * ***** END LICENSE BLOCK ***** *)
25
26 unit EXUSRMG3;
27
28 interface
29
30 uses
31 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
32 StdCtrls, ExtCtrls;
33
34 type
35 TNewUserForm = class(TForm)
36 Label1: TLabel;
37 UserNameEdit: TEdit;
38 Label2: TLabel;
39 FullNameEdit: TEdit;
40 Label3: TLabel;
41 CommentEdit: TEdit;
42 Panel1: TPanel;
43 Label4: TLabel;
44 Password1Edit: TEdit;
45 Label5: TLabel;
46 Password2Edit: TEdit;
47 OKBtn: TButton;
48 CancelBtn: TButton;
49 procedure OKBtnClick(Sender: TObject);
50 private
51 { Private declarations }
52 public
53 { Public declarations }
54 end;
55
56 var
57 NewUserForm: TNewUserForm;
58
59 implementation
60
61 {$R *.DFM}
62
63 procedure TNewUserForm.OKBtnClick(Sender: TObject);
64 begin
65 if Trim(UserNameEdit.Text) = '' then
66 ModalResult := mrNone;
67 if Password1Edit.Text <> Password2Edit.Text then begin
68 ShowMessage('Password and Confirm Password do not match!');
69 ModalResult := mrNone;
70 end;
71 end;
72
73 end.

  ViewVC Help
Powered by ViewVC 1.1.20