⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 saveqas.cpp

📁 C++
💻 CPP
字号:
//----------------------------------------------------------------------------
//Borland C++ Builder
//Copyright (c) 1987, 1998 Borland International Inc. All Rights Reserved.
//----------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop

#include <memory>       //for STL auto_ptr class
#include "SaveQAs.h"
#pragma resource "*.DFM"
//---------------------------------------------------------------------------

__fastcall TSaveQueryAs::TSaveQueryAs(TComponent* AOwner)
                                :TForm(AOwner)
{
}
__fastcall TSaveQueryAs::~TSaveQueryAs(void)
{
}
//---------------------------------------------------------------------------

bool __fastcall GetNewName(AnsiString& QueryName)
{
   bool Result;
   std::auto_ptr<TSaveQueryAs> pQuery(new TSaveQueryAs(Application));

   pQuery->NameEdit->Text = QueryName;
   Result = pQuery->ShowModal() == mrOk;
   if(Result){
     QueryName = pQuery->NameEdit->Text;
   }
   return Result;
};

void __fastcall TSaveQueryAs::NameEditChange( TObject* Sender)
{
  OKBtn->Enabled = NameEdit->Text != "";
};

//End of conversion...

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -