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