Unit1.h
上传用户:daoqigc
上传日期:2021-04-20
资源大小:2795k
文件大小:1k
源码类别:

RichEdit

开发平台:

Delphi

  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <vclClasses.hpp>
  6. #include <vclControls.hpp>
  7. #include <vclStdCtrls.hpp>
  8. #include <vclForms.hpp>
  9. #include <vclExtCtrls.hpp>
  10. #include "RVEdit.hpp"
  11. #include "RichView.hpp"
  12. #include "RVScroll.hpp"
  13. #include "RVStyle.hpp"
  14. #include <vclDialogs.hpp>
  15. //---------------------------------------------------------------------------
  16. class TForm1 : public TForm
  17. {
  18. __published: // IDE-managed Components
  19. TPanel *Panel1;
  20. TButton *btnOpen;
  21. TButton *btnScan;
  22. TRichViewEdit *rve;
  23. TRVStyle *RVStyle1;
  24. TOpenDialog *od;
  25. TCheckBox *CheckBox1;
  26.     void __fastcall FormCreate(TObject *Sender);
  27.     void __fastcall btnOpenClick(TObject *Sender);
  28.     void __fastcall btnScanClick(TObject *Sender);
  29.     void __fastcall rveJump(TObject *Sender, int id);
  30. void __fastcall rveKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
  31. private: // User declarations
  32.     void __fastcall URLScanEvent(int OldStyleNo, int& NewStyleNo,
  33.                                  bool ToHypertext);
  34. public: // User declarations
  35.     __fastcall TForm1(TComponent* Owner);
  36. };
  37. //---------------------------------------------------------------------------
  38. extern TForm1 *Form1;
  39. //---------------------------------------------------------------------------
  40. #endif