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

Annotation of /dao/DelphiScanner/Components/tpsystools_4.04/examples/CBuilder/ExBitsU.h

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 MIME type: text/plain
File size: 3136 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     #ifndef ExBitsUH
27     #define ExBitsUH
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 "StBits.hpp"
36     //---------------------------------------------------------------------------
37     class PACKAGE TForm1 : public TForm
38     {
39     __published: // IDE-managed Components
40     TLabel *Label2;
41     TLabel *Label1;
42     TButton *CreateBtn;
43     TEdit *NumElemsValue;
44     TButton *ClearAllBtn;
45     TButton *SetAllBtn;
46     TButton *InvertAllBtn;
47     TButton *SetBitBtn;
48     TEdit *SetBitValue;
49     TButton *ClearBitBtn;
50     TEdit *ClearBitValue;
51     TButton *IsBitSetBtn;
52     TEdit *IsBitSetValue;
53     TButton *ControlBitBtn;
54     TEdit *ControlBitValue;
55     TCheckBox *BitOnCB;
56     TButton *ToggleBitBtn;
57     TEdit *ToggleBitValue;
58     TMemo *Msg1;
59     TButton *LoadBtn;
60     TButton *SaveBtn;
61     TOpenDialog *OD1;
62     TSaveDialog *SD1;
63     void __fastcall CreateBtnClick(TObject *Sender);
64     void __fastcall FormActivate(TObject *Sender);
65     void __fastcall FormCreate(TObject *Sender);
66     void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
67     void __fastcall IsBitSetBtnClick(TObject *Sender);
68     void __fastcall ControlBitBtnClick(TObject *Sender);
69     void __fastcall SetAllBtnClick(TObject *Sender);
70     void __fastcall InvertAllBtnClick(TObject *Sender);
71     void __fastcall ClearAllBtnClick(TObject *Sender);
72     void __fastcall ToggleBitBtnClick(TObject *Sender);
73     void __fastcall SetBitBtnClick(TObject *Sender);
74     void __fastcall ClearBitBtnClick(TObject *Sender);
75     void __fastcall LoadBtnClick(TObject *Sender);
76     void __fastcall SaveBtnClick(TObject *Sender);
77     private: // User declarations
78     public: // User declarations
79     TStBits* MyBits;
80     __fastcall TForm1(TComponent* Owner);
81     void UpdateButtons(bool BitsOK);
82     bool CheckValue(String S, long &N);
83     String GetTFString(long N);
84     };
85     //---------------------------------------------------------------------------
86     extern PACKAGE TForm1 *Form1;
87     //---------------------------------------------------------------------------
88     #endif
89    

  ViewVC Help
Powered by ViewVC 1.1.20