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 "RichView.hpp"
  10. #include "RVScroll.hpp"
  11. #include "RVStyle.hpp"
  12. #include "CRVFData.hpp"
  13. #include "RVTable.hpp"
  14. //---------------------------------------------------------------------------
  15. class TForm1 : public TForm
  16. {
  17. __published: // IDE-managed Components
  18. TRichView *RichView1;
  19. TRVStyle *RVStyle1;
  20. void __fastcall FormCreate(TObject *Sender);
  21. void __fastcall RichView1MouseMove(TObject *Sender, TShiftState Shift, int X,
  22. int Y);
  23. void __fastcall RichView1RVMouseUp(TCustomRichView *Sender,
  24. TMouseButton Button, TShiftState Shift, int ItemNo, int X, int Y);
  25. void __fastcall RichView1Jump(TObject *Sender, int id);
  26. private: // User declarations
  27.     TCustomRVFormattedData* HighlightedRVData; // highlighted cell
  28.     int AnsweredCount; // number of answered count
  29.     bool Ready; // "ready!" is clicked
  30.     void BuildQuiz();
  31.     void FillQuestion(TStringList* sl, const AnsiString arr[], int& CorrectAnswer);
  32.     void AddTable(const AnsiString Question, TStringList* Answers,
  33.       int CorrectAnswer);
  34. void HighlightCell(TCustomRVFormattedData* RVData);
  35.     void SelectCell(TCustomRVFormattedData* RVData);          
  36. public: // User declarations
  37. __fastcall TForm1(TComponent* Owner);
  38. };
  39. //---------------------------------------------------------------------------
  40. extern TForm1 *Form1;
  41. //---------------------------------------------------------------------------
  42. #endif
  43.