📄 unitoptions.h
字号:
//---------------------------------------------------------------------------
#ifndef UnitOptionsH
#define UnitOptionsH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
//---------------------------------------------------------------------------
class TFormOptions : public TForm
{
__published: // IDE-managed Components
TGroupBox *gbLang;
TRadioButton *rbLanAuto;
TRadioButton *rbLanEnu;
TRadioButton *rbLanChs;
TRadioButton *rbLanCht;
TGroupBox *gbFontSize;
TRadioButton *rbFsAuto;
TRadioButton *rbFsSmall;
TRadioButton *rbFsMedium;
TRadioButton *rbFsLarge;
TBitBtn *BnOK;
TBitBtn *BnCancel;
TImage *ImageLangAuto;
TImage *ImageLangEnglish;
TImage *ImageLangChs;
TImage *ImageLangCht;
void __fastcall BnCancelClick(TObject *Sender);
void __fastcall BnOKClick(TObject *Sender);
void __fastcall ImageLangAutoMouseDown(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall ImageLangEnglishMouseDown(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall ImageLangChsMouseDown(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall ImageLangChtMouseDown(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y);
public: // User declarations
__fastcall TFormOptions(TComponent* Owner);
private:
class TMsgStrings
{
public:
__property AnsiString Str_Caption = { read = fGetMsg, index = 0 }; //"选项"
__property AnsiString Str_Language = { read = fGetMsg, index = 1 }; //"语言"
__property AnsiString Str_FontSize = { read = fGetMsg, index = 2 }; //"字体"
__property AnsiString Str_EditStatus = { read = fGetMsg, index = 3 }; //"编辑"
__property AnsiString Str_PressEnter = { read = fGetMsg, index = 4 }; //"回车"
__property AnsiString Str_Auto = { read = fGetMsg, index = 5 }; //"自动"
__property AnsiString Str_English = { read = fGetMsg, index = 6 }; //"英语"
__property AnsiString Str_SimpChinese = { read = fGetMsg, index = 7 }; //"简体中文"
__property AnsiString Str_TridChinese = { read = fGetMsg, index = 8 }; //"繁体中文"
__property AnsiString Str_Small = { read = fGetMsg, index = 9 }; //"小"
__property AnsiString Str_Medium = { read = fGetMsg, index = 10 }; //"中"
__property AnsiString Str_Large = { read = fGetMsg, index = 11 }; //"大"
__property AnsiString Str_OK = { read = fGetMsg, index = 12 }; //"确定"
__property AnsiString Str_Cancel = { read = fGetMsg, index = 13 }; //"取消"
__fastcall TMsgStrings();
private:
AnsiString __fastcall fGetMsg(int mt);
char **_Msg;
static char *_Msg_Chs[];
static char *_Msg_Cht[];
static char *_Msg_Enu[];
};
};
//---------------------------------------------------------------------------
extern PACKAGE TFormOptions *FormOptions;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -