| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 | //---------------------------------------------------------------------------#include <vcl.h>#pragma hdrstop#include <Common.h>#include <TextsWin.h>#include <GUIConfiguration.h>#include <GUITools.h>#include <Tools.h>#include "CopyParamCustom.h"#include "VCLCommon.h"//---------------------------------------------------------------------------#pragma package(smart_init)#pragma link "CopyParams"#ifndef NO_RESOURCES#pragma resource "*.dfm"#endif//---------------------------------------------------------------------------bool __fastcall DoCopyParamCustomDialog(TCopyParamType & CopyParam,  int CopyParamAttrs){  bool Result;  TCopyParamCustomDialog * Dialog = new TCopyParamCustomDialog(    GetFormOwner(), CopyParamAttrs, 0);  try  {    Result = Dialog->Execute(CopyParam);  }  __finally  {    delete Dialog;  }  return Result;}//---------------------------------------------------------------------------// Dummy parameter distinguishes the constructor from Object Pascals TForm::CreateNew__fastcall TCopyParamCustomDialog::TCopyParamCustomDialog(TComponent * Owner,  int CopyParamAttrs, int /*Dummy*/)  : TForm(Owner){  UseSystemSettings(this);  CopyParamsFrame->CopyParamAttrs = CopyParamAttrs;}//---------------------------------------------------------------------------bool __fastcall TCopyParamCustomDialog::Execute(TCopyParamType & CopyParam){  CopyParamsFrame->Params = CopyParam;  CopyParamsFrame->BeforeExecute();  bool Result = (ShowModal() == DefaultResult(this));  if (Result)  {    CopyParamsFrame->AfterExecute();    CopyParam = CopyParamsFrame->Params;  }  return Result;}//---------------------------------------------------------------------------void __fastcall TCopyParamCustomDialog::FormCloseQuery(TObject * /*Sender*/,  bool & /*CanClose*/){  if (ModalResult == DefaultResult(this))  {    ExitActiveControl(this);  }}//---------------------------------------------------------------------------void __fastcall TCopyParamCustomDialog::HelpButtonClick(TObject * /*Sender*/){  FormHelp(this);}//---------------------------------------------------------------------------
 |