msgboxvar.cpp

来自「符合移动协议的见空系统,很有使用简直,希望多下载」· C++ 代码 · 共 43 行

CPP
43
字号
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "MsgBoxVar.h"
#include "ModemStartThread.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm2 *Form2;
//---------------------------------------------------------------------------
__fastcall TForm2::TForm2(TComponent* Owner)
  : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm2::SetMsgText(AnsiString MsgText)
{
  lb_Text->Caption = MsgText;
  lb_Text->Font->Size = 11;
  BitBtn1->Font->Size = 8;
  iWidth = lb_Text->Width + 90;
  if(iWidth<362)
    iWidth = 362;
  BitBtn1->Height = 25;
  BitBtn1->Width = 121;
  BitBtn1->Left = 128;
  BitBtn1->Top = 48;
  this->Width = iWidth;
}



void __fastcall TForm2::BitBtn1Click(TObject *Sender)
{
  Close();
}
//---------------------------------------------------------------------------


⌨️ 快捷键说明

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