unit6.~cpp
来自「毕业设计图像处理软件及源代码对毕业生会有所帮助」· ~CPP 代码 · 共 58 行
~CPP
58 行
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit6.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm6 *Form6;
extern int iReturnValue;
extern int ilineB;
extern float flineA;
//---------------------------------------------------------------------------
__fastcall TForm6::TForm6(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm6::TrackBar1Change(TObject *Sender)
{
Label6->Caption=IntToStr(TrackBar1->Position);
}
//---------------------------------------------------------------------------
void __fastcall TForm6::FormShow(TObject *Sender)
{
iReturnValue=0;
}
//---------------------------------------------------------------------------
void __fastcall TForm6::BitBtn1Click(TObject *Sender)
{
flineA=StrToFloat(Edit1->Text);
ilineB=StrToInt(Label6->Caption);
if(flineA<=0||flineA>10)
{
MessageBox(NULL,"您设的a值不正确","error",MB_OK);
return;
}
iReturnValue=1;
this->Close();
}
//---------------------------------------------------------------------------
void __fastcall TForm6::BitBtn2Click(TObject *Sender)
{
this->Close();
}
//---------------------------------------------------------------------------
void __fastcall TForm6::UpDown1Changing(TObject *Sender, bool &AllowChange)
{
Edit1->Text=FloatToStr(1+UpDown1->Position/10.0 );
}
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?