//--------------------------------------------------------------------------- #include #pragma hdrstop #include "ChildForm.h" #include "MainForm.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma link "LEADMain" #pragma resource "*.dfm" TChildFrm *ChildFrm; //--------------------------------------------------------------------------- __fastcall TChildFrm::TChildFrm(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall TChildFrm::FormClose(TObject *Sender, TCloseAction &Action) { Action = caFree; } //--------------------------------------------------------------------------- void __fastcall TChildFrm::FormCloseQuery(TObject *Sender, bool &CanClose) { CanClose = true; } //--------------------------------------------------------------------------- void __fastcall TChildFrm::Saved() { bSaved = true; } void __fastcall TChildFrm::FormCreate(TObject *Sender) { bSaved = false; } //---------------------------------------------------------------------------