/[projects]/dao/DelphiScanner/Components/tpsystools_4.04/examples/CBuilder/ExUsrMg1.cpp
ViewVC logotype

Annotation of /dao/DelphiScanner/Components/tpsystools_4.04/examples/CBuilder/ExUsrMg1.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2671 - (hide annotations) (download)
Tue Aug 25 18:15:15 2015 UTC (8 years, 9 months ago) by torben
File size: 2015 byte(s)
Added tpsystools component
1 torben 2671 // ***** 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     #include <vcl.h>
27     #pragma hdrstop
28    
29     #include "ExUsrMg1.h"
30     //---------------------------------------------------------------------------
31     #pragma package(smart_init)
32     #pragma resource "*.dfm"
33     TUserPropertiesForm *UserPropertiesForm;
34     //---------------------------------------------------------------------------
35     __fastcall TUserPropertiesForm::TUserPropertiesForm(TComponent* Owner)
36     : TForm(Owner)
37     {
38     }
39     //---------------------------------------------------------------------------
40     void __fastcall TUserPropertiesForm::FormShow(TObject *Sender)
41     {
42     Caption = "User Properties - " + U->Name;
43     UserNameEdit->Text = U->Name;
44     FullNameEdit->Text = U->FullName;
45     CommentEdit->Text = U->Comment;
46    
47     GL = U->Groups;
48     for (int i=0;i<GL->Count;i++) {
49     TStNetGroupItem* G = (TStNetGroupItem*)GL->Objects[i];
50     TListItem* LI = ListView1->Items->Add();
51     LI->Caption = G->Name;
52     LI->SubItems->Add(G->Comment);
53     }
54     }
55     //---------------------------------------------------------------------------

  ViewVC Help
Powered by ViewVC 1.1.20