Unit1.h
上传用户:lhxd_sz
上传日期:2014-10-02
资源大小:38814k
文件大小:2k
源码类别:

VC书籍

开发平台:

C++ Builder

  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include "CSPIN.h"
  10. //---------------------------------------------------------------------------
  11. class TForm1 : public TForm
  12. {
  13. __published: // IDE-managed Components
  14.         TGroupBox *GroupBox2;
  15.         TLabel *Label4;
  16.         TLabel *Label5;
  17.         TLabel *Label6;
  18.         TLabel *Label7;
  19.         TEdit *EdLeft;
  20.         TCSpinButton *CSpinButton3;
  21.         TEdit *EdTop;
  22.         TCSpinButton *CSpinButton4;
  23.         TEdit *EdRight;
  24.         TCSpinButton *CSpinButton5;
  25.         TEdit *EdBottom;
  26.         TCSpinButton *CSpinButton6;
  27.         void __fastcall CSpinButton3DownClick(TObject *Sender);
  28.         void __fastcall CSpinButton3UpClick(TObject *Sender);
  29.         void __fastcall CSpinButton5DownClick(TObject *Sender);
  30.         void __fastcall CSpinButton5UpClick(TObject *Sender);
  31.         void __fastcall CSpinButton4DownClick(TObject *Sender);
  32.         void __fastcall CSpinButton4UpClick(TObject *Sender);
  33.         void __fastcall CSpinButton6DownClick(TObject *Sender);
  34.         void __fastcall CSpinButton6UpClick(TObject *Sender);
  35. private: // User declarations
  36.         void __fastcall UpDn(bool up,TEdit *Ed);
  37.         double __fastcall GetNumFromEdit(TEdit *Ed);
  38. public: // User declarations
  39.         __fastcall TForm1(TComponent* Owner);
  40. };
  41. //---------------------------------------------------------------------------
  42. extern PACKAGE TForm1 *Form1;
  43. //---------------------------------------------------------------------------
  44. #endif