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

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 <vclComCtrls.hpp>
  10. #include "RVEdit.hpp"
  11. #include "RichView.hpp"
  12. #include "RVScroll.hpp"
  13. #include "RVStyle.hpp"
  14. //---------------------------------------------------------------------------
  15. class TForm1 : public TForm
  16. {
  17. __published: // IDE-managed Components
  18. TPageControl *PageControl1;
  19. TTabSheet *TabSheet1;
  20. TRichViewEdit *rve1;
  21. TButton *Button1;
  22. TTabSheet *TabSheet2;
  23. TEdit *Edit1;
  24. TButton *Button2;
  25. TRichView *rv2;
  26. TTabSheet *TabSheet3;
  27. TRichView *rv3;
  28. TRichViewEdit *rve4;
  29. TButton *Button3;
  30. TRVStyle *RVStyle1;
  31. TImageList *ImageList1;
  32. TTabSheet *TabSheet4;
  33. TRichView *rv5;
  34. TLabel *Label2;
  35. TRichViewEdit *rve6;
  36. TButton *Button4;
  37. TLabel *Label1;
  38. void __fastcall FormCreate(TObject *Sender);
  39. void __fastcall Button1Click(TObject *Sender);
  40. void __fastcall Button2Click(TObject *Sender);
  41. void __fastcall Button3Click(TObject *Sender);
  42. void __fastcall Button4Click(TObject *Sender);
  43. void __fastcall rve6KeyPress(TObject *Sender, char &Key);
  44. void __fastcall rve6KeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
  45. void __fastcall rv5RVFImageListNeeded(TCustomRichView *Sender,
  46. int ImageListTag, TCustomImageList *&il);
  47. private: // User declarations
  48.     void TForm1::AddWithIcons(TCustomRichView* rv, AnsiString s, int StyleNo,
  49.       int &ParaNo);
  50. public: // User declarations
  51. __fastcall TForm1(TComponent* Owner);
  52. };
  53. //---------------------------------------------------------------------------
  54. extern TForm1 *Form1;
  55. //---------------------------------------------------------------------------
  56. #endif
  57.