home *** CD-ROM | disk | FTP | other *** search
/ Delphi Anthology / aDELPHI.iso / ActiveX / BtPrinterList.ActiveX.Control.v1.1.0.0.Win9x.Cracked-KAC / Btprtl_t.exe / CMain.cpp < prev    next >
C/C++ Source or Header  |  1999-10-31  |  2KB  |  54 lines

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4.  
  5. #include "CMain.h"
  6. #include "CActions.h"
  7. #include "CDetails.h"
  8. #include "CHelpers.h"
  9. #include "CLists.h"
  10. //---------------------------------------------------------------------------
  11. #pragma package(smart_init)
  12. #pragma link "BTPRINTERLISTCTRLLib_OCX"
  13. #pragma resource "*.dfm"
  14. TFormMain *FormMain;
  15. //---------------------------------------------------------------------------
  16. __fastcall TFormMain::TFormMain(TComponent* Owner)
  17.     : TForm(Owner)
  18. {
  19. }
  20. //---------------------------------------------------------------------------
  21. void __fastcall TFormMain::bnListsClick(TObject *Sender)
  22. {
  23.     FormList = new TFormList(this);
  24.     FormList->ShowModal();
  25.     delete FormList;
  26. }
  27. //---------------------------------------------------------------------------
  28.  
  29. void __fastcall TFormMain::bnDetailsClick(TObject *Sender)
  30. {
  31.     FormDetail = new TFormDetail(this);
  32.     FormDetail->ShowModal();
  33.     delete FormDetail;
  34. }
  35. //---------------------------------------------------------------------------
  36.  
  37. void __fastcall TFormMain::bnActionsClick(TObject *Sender)
  38. {
  39.     FormActions = new TFormActions(this);
  40.     FormActions->ShowModal();
  41.     delete FormActions;
  42. }
  43. //---------------------------------------------------------------------------
  44.  
  45. void __fastcall TFormMain::bnHelpersClick(TObject *Sender)
  46. {
  47.     FormHelper = new TFormHelper(this);
  48.     FormHelper->ShowModal();
  49.     delete FormHelper;
  50.  
  51. }
  52. //---------------------------------------------------------------------------
  53.  
  54.