home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 May / Chip_2002-05_cd1.bin / chplus / cpp / 3 / Print.exe / mainform.h < prev    next >
C/C++ Source or Header  |  1998-02-09  |  2KB  |  47 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 <DBCtrls.hpp>
  16. #include <Buttons.hpp>
  17. #include <Dialogs.hpp>
  18. #include <Printers.hpp>
  19. #include <cstring.h>
  20.  
  21. //---------------------------------------------------------------------------
  22. class TForm1 : public TForm
  23. {
  24. __published:    // IDE-managed Components 
  25.         TTabSet *TabSet1;
  26.         TPanel *Panel1;
  27.         TMemo *Memo1;
  28.         TPrintDialog *PrintDialog1;
  29.         TSpeedButton *PrintBtn;
  30.         void __fastcall PrintBtnClick(TObject *Sender);
  31.         void __fastcall FormShow(TObject *Sender);
  32.         void __fastcall TabSet1Click(TObject *Sender);
  33.         void __fastcall TabSet1Change(TObject *Sender, int NewTab,
  34.       bool &AllowChange);
  35. private:    // User declarations
  36.         TStringList *pages[5];  // will contain the text for each page
  37.         int currentpage;
  38.         void __fastcall PrintPage(int page);
  39. public:        // User declarations
  40.         virtual __fastcall TForm1(TComponent* Owner);
  41.         virtual __fastcall ~TForm1(void);
  42. };
  43. //---------------------------------------------------------------------------
  44. extern TForm1 *Form1;
  45. //---------------------------------------------------------------------------
  46. #endif
  47.