home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / ObjRepos / SDIApp / SDIMAIN.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  1.4 KB  |  48 lines

  1. //---------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4.  
  5. #include "SDIMain.h"
  6. #include "About.h"
  7. //---------------------------------------------------------------------
  8. #pragma resource "*.dfm"
  9. TSDIAppForm *SDIAppForm;
  10. //---------------------------------------------------------------------
  11. __fastcall TSDIAppForm::TSDIAppForm(TComponent *AOwner)
  12.     : TForm(AOwner)
  13. {
  14. }
  15. //---------------------------------------------------------------------
  16.  
  17. void __fastcall TSDIAppForm::FileNew1Execute(TObject *Sender)
  18. {
  19.   // Do nothing        
  20. }
  21. //---------------------------------------------------------------------------
  22.  
  23. void __fastcall TSDIAppForm::FileOpen1Execute(TObject *Sender)
  24. {
  25.   OpenDialog->Execute();        
  26. }
  27. //---------------------------------------------------------------------------
  28.  
  29. void __fastcall TSDIAppForm::FileSave1Execute(TObject *Sender)
  30. {
  31.   SaveDialog->Execute();        
  32. }
  33. //---------------------------------------------------------------------------
  34.  
  35.  
  36. void __fastcall TSDIAppForm::FileExit1Execute(TObject *Sender)
  37. {
  38.   Close();        
  39. }
  40. //---------------------------------------------------------------------------
  41.  
  42. void __fastcall TSDIAppForm::HelpAbout1Execute(TObject *Sender)
  43. {
  44.   AboutBox->ShowModal();        
  45. }
  46. //---------------------------------------------------------------------------
  47.  
  48.