home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 May
/
Chip_2002-05_cd1.bin
/
chplus
/
cpp
/
3
/
Print.exe
/
mainform.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-02-09
|
2KB
|
47 lines
//---------------------------------------------------------------------------
// Borland C++Builder
// Copyright (c) 1987, 1998 Borland International Inc. All Rights Reserved.
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#ifndef mainformH
#define mainformH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Tabs.hpp>
#include <ExtCtrls.hpp>
#include <DBCtrls.hpp>
#include <Buttons.hpp>
#include <Dialogs.hpp>
#include <Printers.hpp>
#include <cstring.h>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
TTabSet *TabSet1;
TPanel *Panel1;
TMemo *Memo1;
TPrintDialog *PrintDialog1;
TSpeedButton *PrintBtn;
void __fastcall PrintBtnClick(TObject *Sender);
void __fastcall FormShow(TObject *Sender);
void __fastcall TabSet1Click(TObject *Sender);
void __fastcall TabSet1Change(TObject *Sender, int NewTab,
bool &AllowChange);
private: // User declarations
TStringList *pages[5]; // will contain the text for each page
int currentpage;
void __fastcall PrintPage(int page);
public: // User declarations
virtual __fastcall TForm1(TComponent* Owner);
virtual __fastcall ~TForm1(void);
};
//---------------------------------------------------------------------------
extern TForm1 *Form1;
//---------------------------------------------------------------------------
#endif