⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unitabout.cpp

📁 此为一简单的俄罗斯方块游戏
💻 CPP
字号:
//---------------------------------------------------------------------------

#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -