📄 tbmain.h
字号:
//---------------------------------------------------------------------------
#ifndef TBMainH
#define TBMainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <CoolCtrls.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <Db.hpp>
#include <ImgList.hpp>
#include <Menus.hpp>
#include <ToolWin.hpp>
#include <DBTables.hpp>
#include <Buttons.hpp>
#include <ADODB.hpp>
#include <ExtCtrls.hpp>
#include "dxCntner.hpp"
#include "dxInspct.hpp"
#include "dxInspRw.hpp"
#include <Dialogs.hpp>
//---------------------------------------------------------------------------
class TMainForm : public TForm
{
__published: // IDE-managed Components
TPopupMenu *PopupMenu1;
TMenuItem *PMNewChildMenu;
TMenuItem *MSplitter7;
TMenuItem *PMDelMenu;
TMenuItem *MSplitter8;
TMenuItem *PMFind;
TMenuItem *PMExpand;
TMainMenu *MainMenu1;
TMenuItem *S1;
TMenuItem *Exit;
TMenuItem *E1;
TMenuItem *NewChild;
TMenuItem *N7;
TMenuItem *Delete;
TMenuItem *N8;
TMenuItem *Find;
TMenuItem *Collapse;
TMenuItem *Expand;
TMenuItem *H1;
TMenuItem *TMSysHelp;
TMenuItem *About;
TImageList *ImageList1;
TDatabase *Database1;
TQuery *Query1;
TControlBar *ControlBar1;
TToolBar *ToolBar1;
TToolButton *TBNewChild;
TToolButton *ToolButton3;
TToolButton *TBDelete;
TToolButton *ToolButton4;
TToolButton *TBFind;
TToolButton *ToolButton5;
TToolButton *TBHelp;
TToolButton *ToolButton6;
TToolButton *TBExit;
TPanel *Panel1;
TPageControl *PageControl1;
TTabSheet *TabSheet1;
TGroupBox *GroupBox1;
TToolButton *ToolButton7;
TToolButton *TBExpand;
TToolButton *ToolButton9;
TToolButton *TBCollapse;
TTabSheet *TabSheet2;
TTabSheet *TabSheet3;
TdxInspector *dxInspector1;
TdxInspectorTextRow *dxInspector1Row1;
TdxInspectorTextRow *dxInspector1Row2;
TdxInspectorTextRow *dxInspector1Row3;
TdxInspectorTextRow *dxInspector1Row4;
TdxInspectorTextRow *dxInspector1Row5;
TGroupBox *GroupBox2;
TdxInspector *dxInspector2;
TdxInspectorTextRow *dxInspector2Row1;
TdxInspectorTextRow *dxInspector2Row2;
TdxInspectorTextRow *dxInspector2Row3;
TTreeView *TreeView1;
TQuery *Query2;
TPopupMenu *PopupMenu2;
TMenuItem *PMSerch;
TMenuItem *MenuItem7;
TTreeView *TreeView2;
TToolButton *ToolButton8;
TToolButton *TBRefresh;
TMenuItem *T1;
TMenuItem *N1;
TMenuItem *Refresh;
TMenuItem *PMRefresh;
TTreeView *TreeView3;
TGroupBox *GroupBox3;
TdxInspector *dxInspector3;
TdxInspectorTextRow *dxInspector3Row1;
TdxInspectorTextRow *dxInspector3Row2;
TdxInspectorTextButtonRow *dxInspector1Row6;
TdxInspectorTextPickRow *dxInspector1Row7;
TPopupMenu *PopupMenu3;
TMenuItem *FindInput;
TMenuItem *MenuItem2;
TMenuItem *RefreshInput;
TMenuItem *AddInput;
TMenuItem *AddScreen;
TdxInspectorTextPickRow *dxInspector3Row3;
TdxInspectorTextPickRow *dxInspector3Row4;
TdxInspectorTextRow *dxInspector3Row5;
TdxInspectorTextRow *dxInspector3Row6;
TdxInspectorTextPickRow *dxInspector3Row7;
TdxInspectorTextPickRow *dxInspector3Row8;
TdxInspectorTextButtonRow *dxInspector3Row9;
TdxInspectorTextButtonRow *dxInspector3Row10;
TToolButton *ToolButton10;
TToolButton *TBAddScreen;
TOpenDialog *OpenDialog1;
TOpenDialog *OpenDialog2;
TdxInspectorTextButtonRow *dxInspector3Row11;
TMenuItem *N6;
TMenuItem *DeleteInput;
TMenuItem *N3;
TdxInspectorTextPickRow *dxInspector2Row4;
TdxInspectorTextRow *dxInspector2Row5;
TdxInspectorTextPickRow *dxInspector2Row6;
TMenuItem *JBForm;
TdxInspectorTextPickRow *dxInspector3Row12;
TMenuItem *N2;
TMenuItem *HouChuLi;
TMenuItem *YouXiaoXing;
TMenuItem *pubinfo;
TMenuItem *N5;
TMenuItem *N4;
void __fastcall NewChildClick(TObject *Sender);
void __fastcall DeleteClick(TObject *Sender);
void __fastcall FindClick(TObject *Sender);
void __fastcall ExpandClick(TObject *Sender);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
void __fastcall ExitClick(TObject *Sender);
void __fastcall AboutClick(TObject *Sender);
void __fastcall CollapseClick(TObject *Sender);
void __fastcall dxInspector1Edited(TObject *Sender,
TdxInspectorNode *Node, TdxInspectorRow *Row);
void __fastcall dxInspector2Edited(TObject *Sender,
TdxInspectorNode *Node, TdxInspectorRow *Row);
void __fastcall TreeView2Click(TObject *Sender);
void __fastcall TreeView1Click(TObject *Sender);
void __fastcall TreeView1Change(TObject *Sender, TTreeNode *Node);
void __fastcall TreeView2Change(TObject *Sender, TTreeNode *Node);
void __fastcall RefreshClick(TObject *Sender);
void __fastcall TabSheet1Show(TObject *Sender);
void __fastcall TabSheet2Show(TObject *Sender);
void __fastcall TabSheet3Show(TObject *Sender);
void __fastcall dxInspector1Row6ButtonClick(TObject *Sender,
int AbsoluteIndex);
void __fastcall TreeView3Change(TObject *Sender, TTreeNode *Node);
void __fastcall TreeView3Click(TObject *Sender);
void __fastcall dxInspector3Edited(TObject *Sender,
TdxInspectorNode *Node, TdxInspectorRow *Row);
void __fastcall AddScreenClick(TObject *Sender);
void __fastcall dxInspector3Row9ButtonClick(TObject *Sender,
int AbsoluteIndex);
void __fastcall dxInspector3Row10ButtonClick(TObject *Sender,
int AbsoluteIndex);
void __fastcall dxInspector3Row11ButtonClick(TObject *Sender,
int AbsoluteIndex);
void __fastcall dxInspector1Exit(TObject *Sender);
void __fastcall dxInspector2Exit(TObject *Sender);
void __fastcall dxInspector3Exit(TObject *Sender);
void __fastcall dxInspector1KeyPress(TObject *Sender, char &Key);
void __fastcall dxInspector1Row1Validate(TObject *Sender,
AnsiString &ErrorText, bool &Accept);
void __fastcall dxInspector1Row4Validate(TObject *Sender,
AnsiString &ErrorText, bool &Accept);
void __fastcall dxInspector1Row5Validate(TObject *Sender,
AnsiString &ErrorText, bool &Accept);
void __fastcall dxInspector2Row3Validate(TObject *Sender,
AnsiString &ErrorText, bool &Accept);
void __fastcall dxInspector3Row5Validate(TObject *Sender,
AnsiString &ErrorText, bool &Accept);
void __fastcall dxInspector3Row6Validate(TObject *Sender,
AnsiString &ErrorText, bool &Accept);
void __fastcall dxInspector3Row11Validate(TObject *Sender,
AnsiString &ErrorText, bool &Accept);
void __fastcall dxInspector3KeyPress(TObject *Sender, char &Key);
void __fastcall dxInspector2KeyPress(TObject *Sender, char &Key);
void __fastcall dxInspector1Row7Validate(TObject *Sender,
AnsiString &ErrorText, bool &Accept);
void __fastcall dxInspector3Row3Validate(TObject *Sender,
AnsiString &ErrorText, bool &Accept);
void __fastcall JBFormClick(TObject *Sender);
void __fastcall HouChuLiClick(TObject *Sender);
void __fastcall YouXiaoXingClick(TObject *Sender);
void __fastcall pubinfoClick(TObject *Sender);
void __fastcall N4Click(TObject *Sender);
private: // User declarations
bool IsModify,IsEdit,IsChange;
bool isnum;
int len;
AnsiString Provider;
AnsiString Password;
AnsiString UserID;
AnsiString DataSource;
AnsiString PersistSecurityInfo;
AnsiString ConnectionString;
public: // User declarations
__fastcall TMainForm(TComponent* Owner);
int bitlen;
bool JBFlag;
bool IsSelect;
AnsiString pmhstr;
void __fastcall TMainForm::FindTree1Child(TTreeNode *NodeParent);
void __fastcall TMainForm::FindTree3Child(TTreeNode *NodeParent);
int __fastcall TMainForm::DisPlayTreeView1();
int __fastcall TMainForm::DisPlayTreeView2();
int __fastcall TMainForm::DisPlayTreeView3();
int __fastcall TMainForm::FindTreeView1();
int __fastcall TMainForm::FindTreeView2();
int __fastcall TMainForm::FindTreeView3();
int __fastcall TMainForm::TreeView1Save(TTreeNode *EditNode);
int __fastcall TMainForm::TreeView2Save(TTreeNode *EditNode);
int __fastcall TMainForm::TreeView3Save(TTreeNode *EditNode);
void __fastcall TMainForm::DeleteTree1Click();
void __fastcall TMainForm::DeleteTree3Click();
int __fastcall TMainForm::DeleteNode(TTreeNode *SelectNode);
int __fastcall TMainForm::DeleteData(TTreeNode *NodeParent);
int __fastcall TMainForm::DeleteInputNode(TTreeNode *SelectNode);
};
//---------------------------------------------------------------------------
extern PACKAGE TMainForm *MainForm;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -