showpicture.cpp
来自「停车场用」· C++ 代码 · 共 42 行
CPP
42 行
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "ShowPicture.h"
#include "Global.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TWShowPicture *WShowPicture;
//---------------------------------------------------------------------------
__fastcall TWShowPicture::TWShowPicture(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TWShowPicture::FormActivate(TObject *Sender)
{
if (BusPictureName =="")
{
;
}
else
{
Image_BusPicture->Picture->LoadFromFile(BusPictureName);
}
}
//---------------------------------------------------------------------------
void __fastcall TWShowPicture::SpeedButton1Click(TObject *Sender)
{
BusPictureName="";
Close();
}
//---------------------------------------------------------------------------
void __fastcall TWShowPicture::Image_BusPictureDblClick(TObject *Sender)
{
Close();
}
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?