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

RichEdit

开发平台:

Delphi

  1. //---------------------------------------------------------------------------
  2. #ifndef Unit2H
  3. #define Unit2H
  4. //---------------------------------------------------------------------------
  5. #include <vclClasses.hpp>
  6. #include <vclControls.hpp>
  7. #include <vclStdCtrls.hpp>
  8. #include <vclForms.hpp>
  9. #include <vclButtons.hpp>
  10. #include "RVEdit.hpp"
  11. #include "RichView.hpp"
  12. #include "RVScroll.hpp"
  13. #include <vclExtCtrls.hpp>
  14. #if __BORLANDC__>0x520
  15. #include <vclDBTables.hpp>
  16. #endif
  17. //---------------------------------------------------------------------------
  18. class TForm2 : public TForm
  19. {
  20. __published: // IDE-managed Components
  21.     TSpeedButton *btnBold;
  22.     TSpeedButton *btnPost;
  23.     TSpeedButton *btnCancel;
  24.     TSpeedButton *btnClose;
  25.     TRichViewEdit *RichViewEdit1;
  26.     TPanel *Panel1;
  27.     void __fastcall RichViewEdit1Change(TObject *Sender);
  28.     void __fastcall btnPostClick(TObject *Sender);
  29.     void __fastcall btnCancelClick(TObject *Sender);
  30.     void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  31.     void __fastcall btnCloseClick(TObject *Sender);
  32.     void __fastcall RichViewEdit1CurTextStyleChanged(TObject *Sender);
  33.     void __fastcall btnBoldClick(TObject *Sender);
  34. private: // User declarations
  35.     bool FModified;
  36.     AnsiString FFieldName;
  37.     TTable* FTable;
  38.     void __fastcall SetModified(const bool Value);
  39.     void Load();
  40.     void Save();
  41.     __property bool Modified = {read=FModified, write=SetModified};
  42. public: // User declarations
  43.     __fastcall TForm2(TComponent* Owner);
  44.     void SetField(const AnsiString AFieldName, TTable * ATable);
  45. };
  46. //---------------------------------------------------------------------------
  47. extern TForm2 *Form2;
  48. //---------------------------------------------------------------------------
  49. #endif