git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.DevExpressVCL@21 05c56307-c608-d34a-929d-697000501d7a
92 lines
2.8 KiB
C++
92 lines
2.8 KiB
C++
//---------------------------------------------------------------------------
|
|
#ifndef DBTreemainH
|
|
#define DBTreemainH
|
|
//---------------------------------------------------------------------------
|
|
#include <vcl\Classes.hpp>
|
|
#include <vcl\Controls.hpp>
|
|
#include <vcl\StdCtrls.hpp>
|
|
#include <vcl\Forms.hpp>
|
|
#include <vcl\ExtCtrls.hpp>
|
|
#include <vcl\DBCtrls.hpp>
|
|
#include <vcl\DBGrids.hpp>
|
|
#include "Grids.hpp"
|
|
#include <vcl\Mask.hpp>
|
|
#include <vcl\ComCtrls.hpp>
|
|
#include <vcl\Buttons.hpp>
|
|
#include <vcl\DBTables.hpp>
|
|
#include <vcl\DB.hpp>
|
|
#include "dxdbtrel.hpp"
|
|
#include "dxdbtree.hpp"
|
|
#include "dxtree.hpp"
|
|
#include <Db.hpp>
|
|
//---------------------------------------------------------------------------
|
|
class TForm1 : public TForm
|
|
{
|
|
__published: // IDE-managed Components
|
|
TPanel *Panel1;
|
|
TLabel *Label1;
|
|
TLabel *Label2;
|
|
TLabel *Label3;
|
|
TDBMemo *DBMemo1;
|
|
TdxDBLookupTreeView *DBLookUpTreeView1;
|
|
TDBEdit *DBEdit1;
|
|
TPanel *Panel2;
|
|
TdxDBTreeView *DBTreeView1;
|
|
TPanel *Panel3;
|
|
TBitBtn *BitBtn1;
|
|
TCheckBox *CheckBox1;
|
|
TCheckBox *CheckBox2;
|
|
TBitBtn *BitBtnAdd;
|
|
TBitBtn *BitBtnAddChild;
|
|
TBitBtn *BitBtnEdit;
|
|
TBitBtn *BitBtnDel;
|
|
TBitBtn *BitBtn2;
|
|
TBitBtn *BitBtn3;
|
|
TCheckBox *CheckBox3;
|
|
TCheckBox *CheckBox4;
|
|
TButton *Button2;
|
|
TTable *T1;
|
|
TIntegerField *T1Pr_id;
|
|
TIntegerField *T1Pr_parent;
|
|
TStringField *T1Pr_name;
|
|
TDateField *T1Pr_bdate;
|
|
TDateField *T1Pr_edate;
|
|
TMemoField *T1Pr_info;
|
|
TDataSource *DS1;
|
|
TDataSource *DS2;
|
|
TTable *T2;
|
|
TImageList *ImageList1;
|
|
TCheckBox *CheckBox5;
|
|
void __fastcall CheckBox1Click(TObject *Sender);
|
|
|
|
|
|
void __fastcall BitBtnDelClick(TObject *Sender);
|
|
void __fastcall BitBtnAddClick(TObject *Sender);
|
|
void __fastcall BitBtnAddChildClick(TObject *Sender);
|
|
void __fastcall BitBtnEditClick(TObject *Sender);
|
|
void __fastcall BitBtn2Click(TObject *Sender);
|
|
|
|
void __fastcall BitBtn3Click(TObject *Sender);
|
|
void __fastcall CheckBox2Click(TObject *Sender);
|
|
|
|
void __fastcall DBTreeView1DragDropTreeNode(TTreeNode *Destination,
|
|
TTreeNode *Source, bool &Accept);
|
|
|
|
void __fastcall Button2Click(TObject *Sender);
|
|
void __fastcall DBTreeView1CustomDraw(TObject *Sender, TTreeNode *TreeNode,
|
|
TFont *AFont, TColor &AColor, TColor &ABkColor);
|
|
void __fastcall CheckBox5Click(TObject *Sender);
|
|
void __fastcall DBTreeView1AddNewItem(TObject *Sender,
|
|
TdxDBTreeNode *&DBTreeNode);
|
|
void __fastcall DBLookUpTreeView1AddNewItem(TObject *Sender,
|
|
TdxDBTreeNode *&DBTreeNode);
|
|
void __fastcall FormCreate(TObject *Sender);
|
|
private: // User declarations
|
|
public: // User declarations
|
|
__fastcall TForm1(TComponent* Owner);
|
|
};
|
|
//---------------------------------------------------------------------------
|
|
extern TForm1 *Form1;
|
|
//---------------------------------------------------------------------------
|
|
#endif
|