home *** CD-ROM | disk | FTP | other *** search
- //---------------------------------------------------------------------------
- #include <vcl\vcl.h>
- #pragma hdrstop
-
- #include "Main.h"
- #include "dm.h"
- #include "About.h"
- #include "Report.h"
- //---------------------------------------------------------------------------
- #pragma link "VRPROGR"
- #pragma resource "*.dfm"
- TMainForm *MainForm;
- //---------------------------------------------------------------------------
- __fastcall TMainForm::TMainForm(TComponent* Owner)
- : TForm(Owner)
- {
- }
- //----------------------------------------------------------------------------
- void __fastcall TMainForm::PrintSetup(TObject *Sender)
- {
- RepForm->VividReport->PrinterSetup ();
- }
- //----------------------------------------------------------------------------
- void __fastcall TMainForm::Exit(TObject *Sender)
- {
- Close();
- }
- //----------------------------------------------------------------------------
- void __fastcall TMainForm::About(TObject *Sender)
- {
- AboutBox->ShowModal ();
- }
- //---------------------------------------------------------------------------
- void __fastcall TMainForm::PrintItemClick(TObject *Sender)
- {
- if (RepForm->VividReport->PrintSetup ()) RepForm->VividReport->Print ();
- }
- //---------------------------------------------------------------------------
- void __fastcall TMainForm::PrintPreviewItemClick(TObject *Sender)
- {
- RepForm->VividReport->PrintPreview (VRPreview);
- }
- //---------------------------------------------------------------------------
-
-