📄 umsgbox.h
字号:
//自定义的消息框 袁军
//---------------------------------------------------------------------------
#ifndef UMsgBoxH
#define UMsgBoxH
#include "UTemplate.h"
#include <Buttons.hpp>
#include <Classes.hpp>
#include <Controls.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <StdCtrls.hpp>
//---------------------------------------------------------------------------
class TFormMsgBox : public TFormTemplate
{
__published: // IDE-managed Components
TSpeedButton *SBtnYes;
TSpeedButton *SBtnNo;
TSpeedButton *SBtnCancel;
TLabel *LabelMsg;
TImage *ImageInformation;
TImage *ImageError;
TImage *ImageWarning;
TImage *ImageYes;
TImage *ImageNo;
TImage *ImageCancel;
void __fastcall MsgBox(AnsiString Caption, AnsiString Text, int BtnCount,int Msgtype);
void __fastcall SBtnCloseTempClick(TObject *Sender);
void __fastcall SBtnYesClick(TObject *Sender);
void __fastcall SBtnNoClick(TObject *Sender);
void __fastcall SBtnCancelClick(TObject *Sender);
private: // User declarations
public: // User declarations
__fastcall TFormMsgBox(TComponent* Owner);
int Id;
//bool ismsgbox;
};
//---------------------------------------------------------------------------
extern PACKAGE TFormMsgBox *FormMsgBox;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -