📄 unit2.cpp~
字号:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "spmdll.h"
#include "Unit1.h"
#include "Unit2.h"
#pragma package(smart_init)
//---------------------------------------------------------------------------
// Important: Methods and properties of objects in VCL can only be
// used in a method called using Synchronize, for example:
//
// Synchronize(UpdateCaption);
//
// where UpdateCaption could look like:
//
// void __fastcall th1::UpdateCaption()
// {
// Form1->Caption = "Updated in a thread";
// }
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
__fastcall th1::th1(bool CreateSuspended)
: TThread(CreateSuspended)
{
FreeOnTerminate = false;
Resume();
//Priority=tpTimeCritical; //最高优先级别
}
//---------------------------------------------------------------------------
void __fastcall th1::Execute(void)
{
//---- Place thread code here ----
// Form1->Button2->Click();
//double m_spectrum[3648], WL[3648];
while(!Terminated)
{
Form1->Button2->Click();
//DoScan();
//getSpectrum(m_spectrum);
//getWavelengths(WL);
//DrawCordinate();
//DrawSpectrum();
}
Form1->BitBtn1->Enabled = true;
Form1->Button2->Enabled = false;
}
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -