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

📄 udistance.cpp

📁 测试你们之间的关系 测试你们之间的关系 测试你们之间的关系
💻 CPP
字号:
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "UDistance.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TFDistance *FDistance;
short index,czh;
//---------------------------------------------------------------------------
__fastcall TFDistance::TFDistance(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TFDistance::Image1Click(TObject *Sender)
{
 // ImageList->GetBitmap(0,Image1->Picture->Bitmap);
  if(czh==0)
     czh=1;
  else
  {
   
  }
  Label1->Visible=false;

}
//---------------------------------------------------------------------------
void __fastcall TFDistance::Timer1Timer(TObject *Sender)
{
 if(czh==1&&index<=19)
 {
  Image1->Picture=NULL;
  ImageList->GetBitmap(index,Image1->Picture->Bitmap);
   index++;
 }
 else
 {
  Label1->Visible=true;
  index=0;
  czh=0;
 }

     
}
//---------------------------------------------------------------------------
void __fastcall TFDistance::FormShow(TObject *Sender)
{
 index=1;        
}
//---------------------------------------------------------------------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -