unitabout.cpp
来自「一个小游戏程序!! 大家可以来」· C++ 代码 · 共 39 行
CPP
39 行
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "UnitAbout.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TFormAbout *FormAbout;
//---------------------------------------------------------------------------
__fastcall TFormAbout::TFormAbout(TComponent* Owner)
: TForm(Owner)
{
Font->Name = "宋体";
Font->Charset = GB2312_CHARSET;
Font->Size = 9;
LabelProg->Font->Size = 12;
LabelHome->Font->Color = clBlue;
LabelHome->Font->Style = LabelHome->Font->Style<<fsUnderline;
}
//---------------------------------------------------------------------------
void __fastcall TFormAbout::LabelHomeClick(TObject *Sender)
{
ShellExecute(Handle,"open",LabelHome->Caption.c_str(),0,"",SW_SHOWNORMAL);
}
//---------------------------------------------------------------------------
void __fastcall TFormAbout::LabelHomeMouseEnter(TObject *Sender)
{
LabelHome->Font->Color = clRed;
}
//---------------------------------------------------------------------------
void __fastcall TFormAbout::LabelHomeMouseLeave(TObject *Sender)
{
LabelHome->Font->Color = clBlue;
}
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?