/[projects]/dao/DelphiScanner/Components/tpsystools_4.04/examples/CBuilder/Ex1DArrU.h
ViewVC logotype

Contents of /dao/DelphiScanner/Components/tpsystools_4.04/examples/CBuilder/Ex1DArrU.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2671 - (show annotations) (download)
Tue Aug 25 18:15:15 2015 UTC (8 years, 8 months ago) by torben
File MIME type: text/plain
File size: 3153 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 #ifndef Ex1DArrUH
27 #define Ex1DArrUH
28 //---------------------------------------------------------------------------
29 #include <vcl\Classes.hpp>
30 #include <vcl\Controls.hpp>
31 #include <vcl\StdCtrls.hpp>
32 #include <vcl\Forms.hpp>
33 #include <vcl\Dialogs.hpp>
34
35 #include "math.h"
36 #include "StLArr.hpp"
37 //---------------------------------------------------------------------------
38 #pragma pack(push, 1)
39 struct ARecord
40 {
41 long X, Y;
42 Double Mag;
43 String Name1;
44 String Name2;
45 } ;
46 #pragma pack(pop)
47 //---------------------------------------------------------------------------
48 class PACKAGE TForm1 : public TForm
49 {
50 __published: // IDE-managed Components
51 TLabel *Label4;
52 TLabel *Label1;
53 TLabel *Label2;
54 TLabel *Label3;
55 TLabel *Label5;
56 TLabel *Label6;
57 TButton *CreateBtn;
58 TEdit *ElemNum;
59 TButton *ClearBtn;
60 TButton *FillBtn;
61 TButton *PutBtn;
62 TButton *GetBtn;
63 TButton *SortBtn;
64 TListBox *LB1;
65 TEdit *Edit1;
66 TEdit *Edit2;
67 TEdit *Edit3;
68 TEdit *Edit4;
69 TEdit *Edit5;
70 TButton *LoadBtn;
71 TButton *SaveBtn;
72 TOpenDialog *OD1;
73 TSaveDialog *SD1;
74 void __fastcall FormCreate(TObject *Sender);
75 void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
76 void __fastcall LB1DblClick(TObject *Sender);
77 void __fastcall CreateBtnClick(TObject *Sender);
78 void __fastcall ClearBtnClick(TObject *Sender);
79 void __fastcall FillBtnClick(TObject *Sender);
80 void __fastcall GetBtnClick(TObject *Sender);
81 void __fastcall PutBtnClick(TObject *Sender);
82 void __fastcall SortBtnClick(TObject *Sender);
83 void __fastcall LoadBtnClick(TObject *Sender);
84 void __fastcall SaveBtnClick(TObject *Sender);
85 private: // User declarations
86 public: // User declarations
87 TStLArray *MyLArray;
88 ARecord ARec;
89
90 __fastcall TForm1(TComponent* Owner);
91 void SetBusy(Boolean B);
92 void FillControls();
93 void FillListBox();
94 bool CheckControls(ARecord& AR);
95 void UpdateButtons(bool AOK);
96 };
97 //---------------------------------------------------------------------------
98 extern PACKAGE TForm1 *Form1;
99 //---------------------------------------------------------------------------
100 #endif

  ViewVC Help
Powered by ViewVC 1.1.20