📄 unit1.h
字号:
//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include "JvDBCombobox.hpp"
#include "JvDBGrid.hpp"
#include "JvDBUltimGrid.hpp"
#include "JvExDBGrids.hpp"
#include "JvExStdCtrls.hpp"
#include <ADODB.hpp>
#include <Classes.hpp>
#include <Controls.hpp>
#include <Db.hpp>
#include <DBCtrls.hpp>
#include <DBGrids.hpp>
#include <ExtCtrls.hpp>
#include <Grids.hpp>
#include <StdCtrls.hpp>
#include <DB.hpp>
#include "JvDBGridFooter.hpp"
#include <ComCtrls.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // Composants g閞閟 par l'EDI
TJvDBUltimGrid *JvDBGrid1;
TADOConnection *ADOConnection1;
TADOTable *MainTable;
TDataSource *DataSource1;
TDBMemo *DBMemo1;
TDataSource *DataSource2;
TADOTable *LookupTable;
TJvDBComboBox *JvDBComboBox1;
TDBLookupComboBox *DBLookupComboBox1;
TPanel *PanelButtons;
TButton *B_Connect;
TButton *B_TitleIndic;
TButton *B_WordWrap;
TButton *B_ModFooter;
TButton *B_ShowEdit;
TAutoIncField *MainTableRefLogiciel;
TWideStringField *MainTableSoftware;
TWideStringField *MainTableCategory;
TBooleanField *MainTableFirstBool;
TBooleanField *MainTableSecondBool;
TSmallintField *MainTableLicenses;
TBCDField *MainTablePrice;
TMemoField *MainTableComment;
TButton *B_Search;
TPanel *PanelGrid;
TJvDBGridFooter *JvDBGridFooter1;
TADOQuery *CountQuery;
void __fastcall B_ModFooterClick(TObject *Sender);
void __fastcall B_ConnectClick(TObject *Sender);
void __fastcall B_TitleIndicClick(TObject *Sender);
void __fastcall B_WordWrapClick(TObject *Sender);
void __fastcall B_ShowEditClick(TObject *Sender);
void __fastcall MainTableCategoryGetText(TField *Sender, AnsiString &Text,
bool DisplayText);
void __fastcall FormCreate(TObject *Sender);
void __fastcall FormDestroy(TObject *Sender);
void __fastcall JvDBComboBox1KeyPress(TObject *Sender, char &Key);
void __fastcall DBLookupComboBox1KeyPress(TObject *Sender, char &Key);
void __fastcall FormShow(TObject *Sender);
void __fastcall DBMemo1Enter(TObject *Sender);
void __fastcall JvDBGrid1RestoreGridPosition(TJvDBUltimGrid *Sender,
Pointer SavedBookmark, int SavedRowPos);
void __fastcall B_SearchClick(TObject *Sender);
void __fastcall JvDBGridFooter1Calculate(TJvDBGridFooter *Sender,
const AnsiString FieldName, Variant &CalcValue);
private: // D閏larations utilisateur
int OldRowsHeight, Compteur;
TStringList* DisplayList;
void __fastcall FillUpList();
public: // D閏larations utilisateur
__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -