TreeDemo.h
上传用户:hylc_2004
上传日期:2014-01-23
资源大小:46800k
文件大小:2k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. //---------------------------------------------------------------------------
  2. #ifndef TreeDemoH
  3. #define TreeDemoH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include "fcDemoRichEdit.hpp"
  10. #include "fcStatusBar.hpp"
  11. #include "fcTreeView.hpp"
  12. #include <ComCtrls.hpp>
  13. #include <Db.hpp>
  14. #include <DBGrids.hpp>
  15. #include <DBTables.hpp>
  16. #include <Grids.hpp>
  17. #include <ImgList.hpp>
  18. //---------------------------------------------------------------------------
  19. class TTreeViewDemoForm : public TForm
  20. {
  21. __published: // IDE-managed Components
  22.         TPageControl *PageControl1;
  23.         TTabSheet *TabSheet1;
  24.         TfcTreeView *fcTreeView1;
  25.         TCheckBox *CheckBox1;
  26.         TCheckBox *CheckBox2;
  27.         TfcDemoRichEdit *fcDemoRichEdit1;
  28.         TTabSheet *TabSheet2;
  29.         TfcStatusBar *fcStatusBar1;
  30.         TfcTreeView *fcTreeView2;
  31.         TfcDemoRichEdit *fcDemoRichEdit2;
  32.         TTabSheet *TabSheet3;
  33.         TLabel *Label1;
  34.         TfcTreeView *fcTreeView3;
  35.         TButton *Button1;
  36.         TDBGrid *DBGrid1;
  37.         TfcDemoRichEdit *fcDemoRichEdit3;
  38.         TImageList *ImageList1;
  39.         TDataSource *DataSource1;
  40.         TImageList *ImageList2;
  41.         TQuery *Query1;
  42.         void __fastcall FormShow(TObject *Sender);
  43.         void __fastcall fcTreeView1CalcNodeAttributes(
  44.           TfcCustomTreeView *TreeView, TfcTreeNode *Node,
  45.           TfcItemStates State);
  46.         void __fastcall CheckBox1Click(TObject *Sender);
  47.         void __fastcall CheckBox2Click(TObject *Sender);
  48.         void __fastcall fcTreeView2MouseMove(TfcCustomTreeView *TreeView,
  49.           TfcTreeNode *Node, TShiftState Shift, int X, int Y);
  50.         void __fastcall Button1Click(TObject *Sender);
  51.         void __fastcall fcTreeView3ToggleCheckbox(
  52.           TfcCustomTreeView *TreeView, TfcTreeNode *Node);
  53.         void __fastcall Query1FilterRecord(TDataSet *DataSet,
  54.           bool &Accept);
  55. private: // User declarations
  56. public: // User declarations
  57.         __fastcall TTreeViewDemoForm(TComponent* Owner);
  58. };
  59. //---------------------------------------------------------------------------
  60. extern PACKAGE TTreeViewDemoForm *TreeViewDemoForm;
  61. //---------------------------------------------------------------------------
  62. #endif