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

Contents of /dao/DelphiScanner/Components/tpsystools_4.04/examples/CBuilder/Ex2DArrU.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: 3029 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 Ex2DArrUH
27 #define Ex2DArrUH
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 #include "StUtils.hpp"
38
39
40 #define MAXROWS (long) (1000)
41 #define MAXCOLS (long) (10)
42
43 //---------------------------------------------------------------------------
44 class PACKAGE TForm1 : public TForm
45 {
46 __published: // IDE-managed Components
47 TLabel *Label5;
48 TLabel *Label6;
49 TListBox *ArrayLB;
50 TButton *CreateBtn;
51 TEdit *LMValue;
52 TEdit *LMRow;
53 TEdit *LMCol;
54 TButton *ClearBtn;
55 TButton *FillBtn;
56 TButton *PutBtn;
57 TButton *PutRowBtn;
58 TButton *GetBtn;
59 TButton *GetRowBtn;
60 TButton *SortBtn;
61 TButton *LoadBtn;
62 TButton *SaveBtn;
63 TOpenDialog *OD1;
64 TSaveDialog *SD1;
65 void __fastcall FormCreate(TObject *Sender);
66 void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
67
68 void __fastcall CreateBtnClick(TObject *Sender);
69 void __fastcall ClearBtnClick(TObject *Sender);
70 void __fastcall FillBtnClick(TObject *Sender);
71 void __fastcall PutBtnClick(TObject *Sender);
72 void __fastcall PutRowBtnClick(TObject *Sender);
73 void __fastcall GetBtnClick(TObject *Sender);
74 void __fastcall GetRowBtnClick(TObject *Sender);
75 void __fastcall SortBtnClick(TObject *Sender);
76 void __fastcall LoadBtnClick(TObject *Sender);
77 void __fastcall SaveBtnClick(TObject *Sender);
78 void __fastcall ArrayLBDblClick(TObject *Sender);
79 private: // User declarations
80 public: // User declarations
81 TStLMatrix *MyLMatrix;
82 long LIArray[MAXCOLS];
83
84 __fastcall TForm1(TComponent* Owner);
85
86 void SetBusy(bool B);
87 void FillListBox();
88 void UpdateButtons(bool AOK);
89 };
90 //---------------------------------------------------------------------------
91 extern PACKAGE TForm1 *Form1;
92 //---------------------------------------------------------------------------
93 #endif

  ViewVC Help
Powered by ViewVC 1.1.20