i need to make 4 different forms in 1 project in borland C++ Builder.forms r different but there is some similar tasks of them.so i made a common base form with similar tasks and all codes of similar tasks r same.now from the base form develop 4 other form.
example:
suppose one base form "Base"->with 3 common button save new Close.
now need to make another 4 forms including these 3 task.so save this "BASE" form in four Different names and also "Add this file to the project".and develop these 4 forms seperately.all codes of similar tasks r in base form.
Problem is that in BASE form Button i write the code;but when run the other forms and click the buton.it doesn't close.
how to link between base and other forms
Base form
#include <vcl.h>
#pragma hdrstop
#include "BaseMD.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TBaseMDForm *BaseMDForm;
//---------------------------------------------------------------------------
__fastcall TBaseMDForm::TBaseMDForm(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TBaseMDForm::ExitClick(TObject *Sender)
{
Close();
}
//---------------------------------------------------------------------------
One other form:
#include <vcl.h>
#pragma hdrstop
#include "PurOrder.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TPurOrderForm *PurOrderForm;
//---------------------------------------------------------------------------
__fastcall TPurOrderForm::TPurOrderForm(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------