home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Examples / Apps / Printing / MAINFORM.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  1.7 KB  |  46 lines

  1. //---------------------------------------------------------------------------
  2. // Borland C++Builder
  3. // Copyright (c) 1987, 1998 Borland International Inc.  All Rights Reserved.
  4. //---------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #ifndef mainformH
  7. #define mainformH
  8. //---------------------------------------------------------------------------
  9. #include <Classes.hpp>
  10. #include <Controls.hpp>
  11. #include <StdCtrls.hpp>
  12. #include <Forms.hpp>
  13. #include <Tabs.hpp>
  14. #include <ExtCtrls.hpp>
  15. #include <Buttons.hpp>
  16. #include <Dialogs.hpp>
  17. #include <Printers.hpp>
  18. #include <cstring.h>
  19.  
  20. //---------------------------------------------------------------------------
  21. class TForm1 : public TForm
  22. {
  23. __published:    // IDE-managed Components 
  24.         TTabSet *TabSet1;
  25.         TPanel *Panel1;
  26.         TMemo *Memo1;
  27.         TPrintDialog *PrintDialog1;
  28.         TSpeedButton *PrintBtn;
  29.         void __fastcall PrintBtnClick(TObject *Sender);
  30.         void __fastcall FormShow(TObject *Sender);
  31.         void __fastcall TabSet1Click(TObject *Sender);
  32.         void __fastcall TabSet1Change(TObject *Sender, int NewTab,
  33.       bool &AllowChange);
  34. private:    // User declarations
  35.         TStringList *pages[5];  // will contain the text for each page
  36.         int currentpage;
  37.         void __fastcall PrintPage(int page);
  38. public:        // User declarations
  39.         virtual __fastcall TForm1(TComponent* Owner);
  40.         virtual __fastcall ~TForm1(void);
  41. };
  42. //---------------------------------------------------------------------------
  43. extern TForm1 *Form1;
  44. //---------------------------------------------------------------------------
  45. #endif
  46.