Unit1.h
上传用户:lhxd_sz
上传日期:2014-10-02
资源大小:38814k
文件大小:2k
- //---------------------------------------------------------------------------
- #ifndef Unit1H
- #define Unit1H
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <DB.hpp>
- #include <Db.hpp>
- #include <DBGrids.hpp>
- #include <DBTables.hpp>
- #include <Grids.hpp>
- #include <Dialogs.hpp>
- //---------------------------------------------------------------------------
- class TForm1 : public TForm
- {
- __published: // IDE-managed Components
- TButton *Button1;
- TQuery *Query1;
- TDataSource *DataSource1;
- TDBGrid *DBGrid1;
- TButton *Button2;
- TOpenDialog *OpenDialog1;
- TEdit *Edit1;
- void __fastcall Button1Click(TObject *Sender);
- void __fastcall Button2Click(TObject *Sender);
- private: // User declarations
- public: // User declarations
- __fastcall TForm1(TComponent* Owner);
- void __fastcall PaintText(TCanvas *cv,int xx,int yy,int ww,int hh,int indent,TAlignment al,AnsiString text);
- AnsiString __fastcall GetFieldValue(TDataSet *Dset,AnsiString name);
- int __fastcall PrintTableTitle(TDBGrid *DGrid,TCanvas *cv,int x1,int y1);
- int __fastcall PrintTableItem(TDBGrid *DGrid,TCanvas *cv,int x1,int y1);
- int __fastcall ToSz(int nn);
- int PrnDpi,TabLeft,TabTop;
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TForm1 *Form1;
- //---------------------------------------------------------------------------
- #endif