📄 diffunit.cpp
字号:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "diffUnit.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
Tdifficult *difficultf;
//---------------------------------------------------------------------------
__fastcall Tdifficult::Tdifficult(TComponent* Owner,int &diff)
: TForm(Owner),difficult(diff)
{
}
//---------------------------------------------------------------------------
void __fastcall Tdifficult::FormCreate(TObject *Sender)
{
switch(this->difficult)
{
case 3:
RadioButton1->Checked=true;
break;
case 2:
RadioButton2->Checked=true;
break;
case 1:
RadioButton3->Checked=true;
break;
}
}
//---------------------------------------------------------------------------
void __fastcall Tdifficult::FormClose(TObject *Sender,
TCloseAction &Action)
{
if(RadioButton1->Checked)
this->difficult=3;
if(RadioButton2->Checked)
this->difficult=2;
if(RadioButton3->Checked)
this->difficult=1;
}
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -